-
Notifications
You must be signed in to change notification settings - Fork 51
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 4 (Final) - Introduce Main RAG Service API and its tests #603
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: ishaansehgal99 <[email protected]>
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 20, 2024 07:13
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 07:13
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 07:13
— with
GitHub Actions
Error
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 20, 2024 16:07
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 16:07
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 16:07
— with
GitHub Actions
Error
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 20, 2024 16:11
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 16:11
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 20, 2024 16:11
— with
GitHub Actions
Error
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 24, 2024 02:07
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 02:07
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 02:07
— with
GitHub Actions
Error
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 24, 2024 02:08
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 02:08
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 02:08
— with
GitHub Actions
Error
Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 24, 2024 18:44
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 18:44
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 18:44
— with
GitHub Actions
Error
…et embedding dim Signed-off-by: ishaansehgal99 <[email protected]>
ishaansehgal99
had a problem deploying
to
unit-tests
September 24, 2024 18:46
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
September 24, 2024 18:46
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 01:44
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 01:46
— with
GitHub Actions
Failure
ishaansehgal99
temporarily deployed
to
e2e-test
October 23, 2024 01:46
— with
GitHub Actions
Inactive
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 18:30
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 18:30
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 18:33
— with
GitHub Actions
Failure
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 18:33
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 18:45
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 18:45
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 18:45
— with
GitHub Actions
Failure
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 18:45
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 18:57
— with
GitHub Actions
Failure
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 18:57
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
unit-tests
October 23, 2024 19:08
— with
GitHub Actions
Error
ishaansehgal99
had a problem deploying
to
e2e-test
October 23, 2024 19:08
— with
GitHub Actions
Error
ishaansehgal99
temporarily deployed
to
unit-tests
October 23, 2024 19:15
— with
GitHub Actions
Inactive
ishaansehgal99
temporarily deployed
to
e2e-test
October 23, 2024 19:15
— with
GitHub Actions
Inactive
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #603 +/- ##
==========================================
- Coverage 58.18% 52.85% -5.34%
==========================================
Files 30 34 +4
Lines 2987 4221 +1234
==========================================
+ Hits 1738 2231 +493
- Misses 1149 1870 +721
- Partials 100 120 +20 ☔ View full report in Codecov by Sentry. |
Fei-Guo
approved these changes
Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reason for Change:
This series of PR will integrate llamaindex RAG service for Kaito.
This PR introduces the main API and its endpoints.
main.py
introduces the main APIThree endpoints are introduced:
1.
POST /index
Description:
Indexes a list of documents into the specified index.
Request Body (
IndexRequest
):index_name
(str): The name of the index.documents
(List[Document]):text
(str): The document's content.metadata
(Optional[dict]): Additional metadata (default: empty).Response (
List[DocumentResponse]
):doc_id
(str): The generated document ID.text
(str): The document content.metadata
(Optional[dict]): Document metadata.2.
POST /query
Description:
Queries the specified index and returns relevant results.
Request Body (
QueryRequest
):index_name
(str): The index to query.query
(str): The search query.top_k
(int, default=10): The number of top results to return.llm_params
(Optional[Dict]): Parameters for LLM processing.Response (
QueryResponse
):response
(str): The result or completion from the API.source_nodes
(List[NodeWithScore]):node_id
(str): The node ID.text
(str): The node content.score
(float): The relevance score.metadata
(Optional[dict]): Node metadata.metadata
(Optional[dict]): Query metadata.3.
GET /indexed-documents
Description:
Lists all documents currently indexed.
Response (
ListDocumentsResponse
):documents
(Dict[str, Dict[str, Dict[str, str]]]):index_name
doc_id
: The document ID.text
: The document content.4.
Additional Files
config.py
introduces the configurable params passed via environment variables from the ragengine controllermodels.py
specifies the schema required for valid HTTP requests to the endpoints specified in main.py