University of Amsterdam Rag API

The rag API from University of Amsterdam — 4 operation(s) for rag.

Operations 4

POST /rag/ingest Rag Ingest #
POST /v1/rag/ingest Rag Ingest #
POST /rag/query Rag Query #
POST /v1/rag/query Rag Query #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/university-of-amsterdam-rag-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

university-of-amsterdam-rag-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LiteLLM Rag API
  description: 'Enterprise Edition


    Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs**


    👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login```


    💸 ```LiteLLM Model Cost Map```.


    🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**'
  version: 1.95.0
tags:
- name: Rag
paths:
  /rag/ingest:
    post:
      tags:
      - Rag
      summary: Rag Ingest
      description: 'RAG Ingest endpoint - all-in-one document ingestion pipeline.


        Supports form upload (for files) or JSON body (for URLs).


        ## Form upload (for files):

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -F file="@document.pdf" \

        -F ''ingest_options={"vector_store": {"custom_llm_provider": "openai"}}''

        ```


        ## JSON body (for URLs):

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "file_url": "https://example.com/document.pdf",

        "ingest_options": {"vector_store": {"custom_llm_provider": "openai"}}

        }''

        ```


        ## Bedrock:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -F file="@document.pdf" \

        -F ''ingest_options={"vector_store": {"custom_llm_provider": "bedrock"}}''

        ```'
      operationId: rag_ingest_rag_ingest_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /v1/rag/ingest:
    post:
      tags:
      - Rag
      summary: Rag Ingest
      description: 'RAG Ingest endpoint - all-in-one document ingestion pipeline.


        Supports form upload (for files) or JSON body (for URLs).


        ## Form upload (for files):

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -F file="@document.pdf" \

        -F ''ingest_options={"vector_store": {"custom_llm_provider": "openai"}}''

        ```


        ## JSON body (for URLs):

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "file_url": "https://example.com/document.pdf",

        "ingest_options": {"vector_store": {"custom_llm_provider": "openai"}}

        }''

        ```


        ## Bedrock:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/ingest" \

        -H "Authorization: Bearer sk-1234" \

        -F file="@document.pdf" \

        -F ''ingest_options={"vector_store": {"custom_llm_provider": "bedrock"}}''

        ```'
      operationId: rag_ingest_v1_rag_ingest_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /rag/query:
    post:
      tags:
      - Rag
      summary: Rag Query
      description: 'RAG Query endpoint - search vector store, optionally rerank, and generate LLM response.


        This endpoint:

        1. Extracts the query from the last user message

        2. Searches the vector store for relevant context

        3. Optionally reranks the results

        4. Generates an LLM response with the retrieved context


        ## Example Request:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/query" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "model": "gpt-4o-mini",

        "messages": [{"role": "user", "content": "What is LiteLLM?"}],

        "retrieval_config": {

        "vector_store_id": "vs_abc123",

        "custom_llm_provider": "openai",

        "top_k": 5

        }

        }''

        ```


        ## With Reranking:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/query" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "model": "gpt-4o-mini",

        "messages": [{"role": "user", "content": "What is LiteLLM?"}],

        "retrieval_config": {

        "vector_store_id": "vs_abc123",

        "custom_llm_provider": "openai",

        "top_k": 10

        },

        "rerank": {

        "enabled": true,

        "model": "cohere/rerank-english-v3.0",

        "top_n": 3

        }

        }''

        ```'
      operationId: rag_query_rag_query_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /v1/rag/query:
    post:
      tags:
      - Rag
      summary: Rag Query
      description: 'RAG Query endpoint - search vector store, optionally rerank, and generate LLM response.


        This endpoint:

        1. Extracts the query from the last user message

        2. Searches the vector store for relevant context

        3. Optionally reranks the results

        4. Generates an LLM response with the retrieved context


        ## Example Request:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/query" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "model": "gpt-4o-mini",

        "messages": [{"role": "user", "content": "What is LiteLLM?"}],

        "retrieval_config": {

        "vector_store_id": "vs_abc123",

        "custom_llm_provider": "openai",

        "top_k": 5

        }

        }''

        ```


        ## With Reranking:

        ```bash

        curl -X POST "http://localhost:4000/v1/rag/query" \

        -H "Authorization: Bearer sk-1234" \

        -H "Content-Type: application/json" \

        -d ''{

        "model": "gpt-4o-mini",

        "messages": [{"role": "user", "content": "What is LiteLLM?"}],

        "retrieval_config": {

        "vector_store_id": "vs_abc123",

        "custom_llm_provider": "openai",

        "top_k": 10

        },

        "rerank": {

        "enabled": true,

        "model": "cohere/rerank-english-v3.0",

        "top_n": 3

        }

        }''

        ```'
      operationId: rag_query_v1_rag_query_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: Bearer token
      in: header
      name: x-litellm-api-key