Skip to main content
This example demonstrates Agentic RAG using Sentence Transformer Reranker with multilingual data for improved search relevance.

Code

rag_sentence_transformer.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install libraries

3

Start Postgres with pgvector

4

Export your OpenAI API key

5

Create a Python file

Create a Python file and add the above code.
6

Run Agent

7

Find All Cookbooks

Explore all the available cookbooks in the Agno repository. Click the link below to view the code on GitHub:Agno Cookbooks on GitHub