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

dev : adding proxy server for ingestion #352

Merged
merged 55 commits into from
Aug 1, 2024
Merged

dev : adding proxy server for ingestion #352

merged 55 commits into from
Aug 1, 2024

Conversation

vipul-maheshwari
Copy link
Contributor

@vipul-maheshwari vipul-maheshwari commented Aug 1, 2024

Pull Request Summary for Ingestion Server Integration

  • Added Ingestion Server: Introduced a new FastAPI-based ingestion server to handle RAG (Retrieval-Augmented Generation) configurations and file uploads.

  • Dockerfile Creation: Created a ingestion_server.Dockerfile to containerize the ingestion server, ensuring it runs in a consistent environment.

  • Updated Docker Compose: Modified docker-compose.yml to include the ingestion server as a service, allowing it to run alongside existing services (Bolna, Twilio, Plivo, Redis, and ngrok).

  • API Endpoints:

    • Implemented a health check endpoint (GET /) to verify server status.
    • Added an endpoint (POST /create-rag) to create RAG configurations and return their IDs.
    • Developed an endpoint (POST /rag-upload-file/{rag_id}) for uploading files associated with specific RAG IDs.
    • Created a retrieval endpoint (GET /rag-retrive/{rag_id}/{index}) to fetch documents based on queries.

Payload for Ingestion Server

{
  "provider": "LanceDB",
  "provider_config": {
    "embedding": {
      "provider": "OpenAI",
      "embedding_model_name": "text-embedding-3-small"
    },
    "chunk_size": 512,
    "overlapping": 200,
    "worker": 2,
    "similarity_top_k":2,
    "rag": {
      "loc": "dev"
    }
  }
}

Todo

  • Resloving MongoDB retrieval by changing the payload, we will add the vector index as the part of the payload config.

marmikcfc and others added 30 commits June 24, 2024 20:36
backmerge master to develop
@marmikcfc marmikcfc marked this pull request as ready for review August 1, 2024 09:15
@marmikcfc marmikcfc merged commit ab342d5 into master Aug 1, 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.

3 participants