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 #23

Closed ellipsis-dev[bot] closed 1 year ago

ellipsis-dev[bot] commented 1 year ago

Summary:

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

This pull request does ...

Implementation:

Plan Feedback: Approved by @nsbradford Report: Step Result Details
1
Add sessionId to the frontendThe changes in the file '/ui/pages/index.tsx' correctly implement the addition of sessionId to the sendLLMRequest function call in the handleNewUserPrompt function.
2
Modify sendLLMRequest functionThe changes in the file '/ui/shared/api.ts' correctly implement the addition of sessionId to the request payload in the sendLLMRequest function.
3
Modify LLMChatCompletionRequest modelThe changes in the file '/backend/models.py' correctly implement the addition of sessionId as a new field in the LLMChatCompletionRequest model.
4
Modify llm endpoint in main.pyThe changes in the file '/backend/main.py' correctly implement the extraction of sessionId from the request payload in the llm endpoint.
5
Modify llm_get function in llm.pyThe changes in the file '/backend/llm.py' correctly implement the addition of sessionId as a parameter and in the metadata of the acompletion function call in the llm_get function.

Something look wrong?: If this Pull Request doesn't contain the expected changes, add more information to #22. 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 25, 2023 6:25pm