Every time I run a query in my chatbot, I keep getting this error, though I do get the response but this error is persistent:
ERROR Error during hybrid search: API error occurred: Status 401
{
“message”:“No API key found in request”,
“request_id”:“8213516cfcd4be641a55af759bfeea76”
}
KB:
knowledge_base = PDFKnowledgeBase(
path=pdf_directory_path,
vector_db=PgVector(
table_name="health_insurace_data",
db_url=db_url,
search_type=SearchType.hybrid,
embedder=MistralEmbedder()
),
chunking_strategy=DocumentChunking(chunk_size=1024, overlap=20),
reader=PDFReader(chunk=True), # Optional: Configure the PDFReader as needed
Agent:
healthcare_agent = Agent(
name="Health-Care Agent",
model=Groq(id="gemma2-9b-it"),
instructions=[
"Use knowledge base to answer the query but if you aren't able to get a definitive answer then use google search to answer"
],
knowledge=knowledge_base,
search_knowledge=True,
tools=[GoogleSearch()], # websearch for knowledge gap
# Add a tool to read chat history.
read_chat_history=True,
add_datetime_to_instructions=True,
# show_tool_calls=True,
markdown = True,
)
How do I resolve this?