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

feat: Part 2 - Add custom LLM inference class #630

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

ishaansehgal99
Copy link
Collaborator

@ishaansehgal99 ishaansehgal99 commented Oct 14, 2024

Reason for Change:
This series of PR will integrate llamaindex RAG service for Kaito.

This PR contains the custom LLM inference class for llamaindex. We need this class because we use custom HTTP endpoint or OpenAI API for handling LLM requests so we need a custom LLM inference class.

https://docs.llamaindex.ai/en/stable/module_guides/models/llms/usage_custom/#example-using-a-custom-llm-model-advanced

ragengine/config.py Outdated Show resolved Hide resolved
ragengine/config.py Outdated Show resolved Hide resolved
ragengine/config.py Outdated Show resolved Hide resolved
ragengine/inference/custom_inference.py Outdated Show resolved Hide resolved
ragengine/config.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.49%. Comparing base (5c30038) to head (78548f3).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #630      +/-   ##
==========================================
- Coverage   58.18%   54.49%   -3.69%     
==========================================
  Files          30       34       +4     
  Lines        2987     3257     +270     
==========================================
+ Hits         1738     1775      +37     
- Misses       1149     1376     +227     
- Partials      100      106       +6     

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

@Fei-Guo Fei-Guo merged commit 870a93d into main Oct 15, 2024
6 of 8 checks passed
@Fei-Guo Fei-Guo deleted the Ishaan/RAG-Part-2-Custom-Inference branch October 15, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants