Skip to content

Use of Ranking in 'RAGStringQueryEngine' #14644

Answered by dosubot bot
mraguth asked this question in Q&A
Discussion options

You must be logged in to vote

To accommodate the evaluation process for Azure embeddings, you can modify the provided code snippet to use the AzureOpenAIEmbedding class. Here is the updated code snippet:

from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
from llama_index.embeddings.azure_openai import AzureOpenAIEmbedding
from llama_index.llms.openai import OpenAI
from llama_index.core import Settings
from llama_index.postprocessor.flag_embedding_reranker import FlagEmbeddingReranker
from uptrain import UpTrainCallbackHandler, CallbackManager
from time import time
import os

# Load documents
documents = SimpleDirectoryReader("./data/paul_graham").load_data()

# Set up LLM and embedding model
Settings.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mraguth
Comment options

@dosubot
Comment options

@mraguth
Comment options

@dosubot
Comment options

Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant