Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limiting Conversational history #1500

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Limiting Conversational history #1500

merged 6 commits into from
Dec 19, 2024

Conversation

ManishMadan2882
Copy link
Collaborator

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    1. Trims the conversational history to the number of latest queries not more than finite number of tokens(default 500)
  • Why was this change needed? (You can also link to an open issue here)
    Prevents LLM from getting overloaded with large context of history.

Copy link

vercel bot commented Dec 17, 2024

@ManishMadan2882 is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 13.63636% with 19 lines in your changes missing coverage. Please review.

Project coverage is 35.90%. Comparing base (f8e4e42) to head (1323261).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
application/utils.py 6.66% 14 Missing ⚠️
application/api/answer/routes.py 33.33% 2 Missing ⚠️
application/retriever/duckduck_search.py 0.00% 2 Missing ⚠️
application/retriever/classic_rag.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1500      +/-   ##
==========================================
+ Coverage   35.89%   35.90%   +0.01%     
==========================================
  Files          68       68              
  Lines        3285     3275      -10     
==========================================
- Hits         1179     1176       -3     
+ Misses       2106     2099       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

vercel bot commented Dec 17, 2024

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

Name Status Preview Comments Updated (UTC)
docs-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 3:26pm

@dartpain dartpain merged commit 5a882fe into arc53:main Dec 19, 2024
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants