Giter Site home page Giter Site logo

valentatomas / super-rag Goto Github PK

View Code? Open in Web Editor NEW

This project forked from superagent-ai/super-rag

0.0 0.0 0.0 228 KB

Super-performant RAG pipeline for AI Agents.

Home Page: https://superagent.sh

Python 78.11% Makefile 0.73% Jupyter Notebook 19.93% Dockerfile 1.23%

super-rag's Introduction

SuperRag

Super-performant RAG pipeline for AI Agents/Assistants.

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",
    "encoder": {
        "type": "openai",
        "name": "text-embedding-3-small",
        "dimensions": 1536  # encoder depends on the provider and model
    },
    "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",
    "encoder": {
        "type": "openai",
        "name": "text-embedding-3-small",
    } 
}

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

super-rag's People

Contributors

elisalimli avatar homanp avatar simjak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.