GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UD-FSAII/UD-Assistant-AlphaTest-rag_api: ID-based RAG FastAPI: Integration with Langchain and PostgreSQL/pgvector

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

124 Commits
124 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
app
app
 
 
tests
tests
 
 
utils/docker
utils/docker
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
Dockerfile
Dockerfile
 
 
Dockerfile.lite
Dockerfile.lite
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
api-compose.yaml
api-compose.yaml
 
 
db-compose.yaml
db-compose.yaml
 
 
docker-compose.override.yml.example
docker-compose.override.yml.example
 
 
docker-compose.yaml
docker-compose.yaml
 
 
main.py
main.py
 
 
pytest.ini
pytest.ini
 
 
requirements.lite.txt
requirements.lite.txt
 
 
requirements.txt
requirements.txt
 
 
setup_venv.sh
setup_venv.sh
 
 
test_requirements.txt
test_requirements.txt
 
 

Repository files navigation

rag_api — UD Assistant fork

Fork of danny-avila/rag_api customized for UD Assistant. This is the RAG / File Search backend for LibreChat.

Our changes vs upstream

  • OCR fallback — when a scanned/image PDF has no extractable text, rag_api calls a local OCR service (Tesseract, presented as an OpenAI-style "Mistral" endpoint) so scanned documents become searchable. See root README §13.
  • app/ingest/ — custom ingestion helpers (pdf_extract.py, figure_extract.py, figure_locator.py) for figure/table-aware extraction.
  • Dockerfile + requirements.txt — adjusted for the above.

Deploy

Runs as a container on the LibreChat Docker network; LibreChat's .env points at it via RAG_API_URL. Embeddings can run in-process (EMBEDDINGS_PROVIDER=huggingface) to save VRAM.

Config

  • .env (gitignored) — DB connection, embedding provider, OCR endpoint. See upstream's .env.example plus the OCR variables documented in root README §13.

Upstream / updates

Pinned to the commit we forked from + our changes. upstream remote points at danny-avila/rag_api. Pull upstream fixes manually; we don't auto-track.

Full detail: parent project root README.md §13 (document File Search & OCR pipeline).

About

ID-based RAG FastAPI: Integration with Langchain and PostgreSQL/pgvector

librechat.ai/

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.