Skip to content

Commit

Permalink
revert to old vectore_store
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-ali1 authored Dec 17, 2024
1 parent de13542 commit d9838c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions back-end/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@

# Initialize Pinecone with API key and connect to index
pc = Pinecone(api_key=pinecone_api_key)
index_name = "macewan-vectors-huggingface-test"
index_name = "macewan-vectors-huggingface"

# this one has sources attached as URL, work in progress
# index_name = "macewan-vectors-huggingface-test"
index = pc.Index(index_name)

# HuggingFace embeddings initialization
Expand Down Expand Up @@ -173,4 +176,4 @@ async def query_chat_bot(query: str, request: Request):
result = res.invoke({"input": query}, config=config)
return JSONResponse(content={"response": result['answer']})
except Exception as e:
return handle_error(e)
return handle_error(e)

0 comments on commit d9838c0

Please sign in to comment.