nsbradford / SemanticSearch

Minimal RAG (Retrieval Augmented Generation) website with Pinecone, FastAPI, NextJS, MongoDB
https://semantic-search-six.vercel.app
9 stars 3 forks source link

[BitBuilder] Add session ID to llm request metadata #21

Closed ellipsis-dev[bot] closed 1 year ago

ellipsis-dev[bot] commented 1 year ago

Summary:

Issue: https://github.com/nsbradford/SemanticSearch/issues/20

This pull request does ...

Implementation:

Plan Feedback: Approved by @nsbradford Report: Step Result Details
1
Add Session ID to FrontendThe changes in the file '/ui/pages/index.tsx' correctly implement the first step of the plan. The 'handleNewUserPrompt' function has been modified to include the 'sessionId' in the payload being sent to the 'postQuery' and 'sendLLMRequest' functions.
2
Modify API Functions to Accept Session IDThe changes in the file '/ui/shared/api.ts' correctly implement the second step of the plan. The 'postQuery' and 'sendLLMRequest' functions have been modified to accept an additional 'sessionId' parameter in their payloads.
3
Add Session ID to Backend APIThe changes in the file '/backend/main.py' correctly implement the third step of the plan. The 'llm' function has been modified to accept an additional 'sessionId' parameter in the request payload. The 'sessionId' is then passed to the 'llm_get' function.
4
Modify llm_get Function to Accept Session IDThe changes in the file '/backend/llm.py' correctly implement the fourth step of the plan. The 'llm_get' function has been modified to accept an additional 'sessionId' parameter. The 'sessionId' is then included in the 'metadata' parameter of the 'acompletion' function call.

Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #20. Then, add the bitbuilder:create label to try again. For more information, check the documentation.

Generated with :heart: by www.bitbuilder.ai

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
semantic-search-mini ❌ Failed (Inspect) Sep 24, 2023 7:38pm