can you help me with this error :
for query in tqdm(queries[:10]):
chain.invoke(query)
Tried multiple ways , but the error says Deployment not found
df = pd.read_parquet(
"http://storage.googleapis.com/arize-phoenix-assets/datasets/"
"unstructured/llm/context-retrieval/langchain/database.parquet"
)
knn_retriever = KNNRetriever(
index=np.stack(df["text_vector"]),
texts=df["text"].tolist(),
embeddings=AzureOpenAIEmbeddings(),
)
chain_type = "stuff" # stuff, refine, map_reduce, and map_rerank
chat_model_name = "gpt35exploration"
llm = ChatOpenAI(model_name=chat_model_name)
chain = RetrievalQA.from_chain_type(
llm=llm,
chain_type=chain_type,
retriever=knn_retriever,
metadata={"application_type": "question_answering"})
Please let me know how i can execute this for
query in tqdm(queries[:10]):
chain.invoke(query)