Hi Community,
I am trying this below llm retrieval tutorials and being stuck at this error since long and not able to understand what I am missing:
“The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.”
I have deployed the API also about a week ago and I am not sure what else am I missing here.
Here is my code:
from langchain.indexes import VectorstoreIndexCreator
from langchain.vectorstores import DocArrayInMemorySearch
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch,
).from_loaders([loader])
# Create a question-answering chain using the index
chain = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=index.vectorstore.as_retriever(), input_key="question")
# Pass a query to the chain
while True:
query = input("query: ")
response = chain({"question": query})
print(response['result'])