Need help in loading the dense retriever from local #4488
Unanswered
rajeevmajumdar1981
asked this question in
Questions
Replies: 1 comment 2 replies
-
Hi @rajeevmajumdar1981 this error should only occur if the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi
i have followed the tutorial https://haystack.deepset.ai/tutorials/18_gpl for Generative Pseudo Labeling for Domain Adaptation in which at the end the retriever is saved in local disk. So i was trying to load that retreiver back to create a pipeline with retriever and reader nodes to answer questions but while running the pipeline it gave me below error . while training with model also i never used open AI models then why this is asking API key for openAI
Exception: Exception while running node 'Retriever': OpenAI API key is not set. You can set it via the
api_key
parameter of the EmbeddingRetriever.The code i used to load and query
FAISS_INDEX_DOCUMENT = Path(os.getcwd()) / 'document_faiss'
stored_retriever = 'adapted_retriever' #'retriever.pt'
pipeline = Pipeline()
reader = FARMReader("deepset/minilm-uncased-squad2")
def initialise():
def query():
question = "how to design wings"
res = pipeline.run(query=question)
print_documents(res, max_text_len=100, print_name=True, print_meta=True)
initialise()
query()
Beta Was this translation helpful? Give feedback.
All reactions