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 4 - Introduce Main RAG Service API and its tests #629

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ishaansehgal99
Copy link
Collaborator

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 API
Four endpoints are introduced:

  • /index - This creates a new index of the specified name
  • /query - This queries the index for context and runs it through an LLM
  • /document/{index_name}/{doc_id} - This retrieves a document from the specified index (this confirms if a document exists and gets its hash and metadata but does not include the documents text itself)
  • /indexed-documents - This retrieves all documents from the specified index (including text)

config.py introduces the configurable params passed via environment variables from the ragengine controller

models.py specifies the schema required for valid HTTP requests to the endpoints specified in main.py

Comment on lines +8 to +9
from vector_store.faiss_store import FaissVectorStoreHandler
from vector_store_manager.manager import VectorStoreManager
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Included in future PR

@ishaansehgal99 ishaansehgal99 changed the title feat: Part 2 - Introduce Main RAG Service API and its tests feat: Part 3 - Introduce Main RAG Service API and its tests Oct 14, 2024
@ishaansehgal99 ishaansehgal99 changed the title feat: Part 3 - Introduce Main RAG Service API and its tests feat: Part 4 - Introduce Main RAG Service API and its tests Oct 15, 2024
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.

1 participant