Skip to content

Rafay-AABS/spectral-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spectral-RAG

Spectral RAG FastAPI Demo

This is a minimal demonstration of a Retrieval-Augmented Generation (RAG) API using FastAPI.

Setup

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the FastAPI app:

    uvicorn spectral_rag_demo:app --reload
  3. Open your browser at http://127.0.0.1:8000/docs to access the interactive API docs.

Example Usage

Send a POST request to /rag with a JSON body:

{
  "query": "spectral methods",
  "top_k": 2
}

The response will include retrieved documents and a generated answer (concatenation of retrieved docs).

About

This repo shows new Retrieval-Augmented Generation technique that improves retrieval quality by using spectral graph theory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages