/super-rag

The best RAG pipeline for AI Assistants.

Primary LanguagePython

SuperRag

SuperRag acts as Superagents RAG pipeline for unstructured data.

API

POST /api/v1/ingest

Input example:

{
    "files": [
        {
            "type": "PDF",
            "url": "https://path-to-my-file.pdf"
        }
    ],
    "vector_database": {
        "type": "qdrant",
        "config": {
            "api_key": "my_api_key",
            "host": "my_qdrant_host"
        }
    },
    "index_name": "my_index",
    "webhook_url": "https://my-webhook-url"
}

POST /api/v1/query

Input example:

{
    "input": "A query",
    "vector_database": {
        "type": "qdrant",
        "config": {
            "api_key": "my_api_key",
            "host": "my_qdrant_host"
        }
    },
    "index_name": "my_index",
}

DELETE /api/v1/delete

Input example:

{
    "file_url": "A file url to delete",
    "vector_database": {
        "type": "qdrant",
        "config": {
            "api_key": "my_api_key",
            "host": "my_qdrant_host"
        }
    },
    "index_name": "my_index",
}

Supported file types

  • PDF
  • TXT
  • MARKDOWN
  • PPTX
  • DOCX

Supported vector databases

  • qdrant
  • pinecone
  • weaviate
  • astra