---
title: "rag_api"
type: "tool"
slug: "danny-avila-rag-api"
canonical_url: "https://www.graphcanon.com/tools/danny-avila-rag-api"
github_url: "https://github.com/danny-avila/rag_api"
homepage_url: "https://librechat.ai/"
stars: 863
forks: 376
primary_language: "Python"
license: "MIT"
archived: false
categories: ["vector-databases", "data-retrieval"]
tags: ["postgresql", "psql", "embeddings", "fastapi", "api", "langchain", "pgvector", "api-rest"]
updated_at: "2026-07-11T22:33:20.958432+00:00"
---

# rag_api

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

A FastAPI-based API for ID-based retrieval-augmented generation (RAG) systems, integrated with Langchain and using PostgreSQL/pgvector as the vector database.

## Facts

- Repository: https://github.com/danny-avila/rag_api
- Homepage: https://librechat.ai/
- Stars: 863 · Forks: 376 · Open issues: 44 · Watchers: 7
- Primary language: Python
- License: MIT
- Last pushed: 2026-06-18T21:40:14+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Active (computed 2026-07-11T11:27:02.965Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T11:27:03.477Z
- Full report: [trust report](/tools/danny-avila-rag-api/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/danny-avila-rag-api/trust)

## Categories

- [Vector Databases](/categories/vector-databases.md)
- [Data & Retrieval](/categories/data-retrieval.md)

## Tags

postgresql, psql, embeddings, fastapi, api, langchain, pgvector, api-rest

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [firecrawl](/tools/firecrawl-firecrawl.md) - The API to search, scrape, and interact with the web at scale. 🔥 (★ 149,109) [Very active]
- [awesome-llm-apps](/tools/shubhamsaboo-awesome-llm-apps.md) - 100+ AI Agent & RAG apps you can actually run — clone, customize, ship. (★ 117,774) [Very active]
- [supabase](/tools/supabase-supabase.md) - The Postgres development platform. (★ 106,150) [Very active]
- [pytorch](/tools/pytorch-pytorch.md) - Tensors and Dynamic neural networks in Python with strong GPU acceleration (★ 101,752) [Very active]
- [ragflow](/tools/infiniflow-ragflow.md) - Retrieval-Augmented Generation engine with agent capabilities (★ 84,818) [Very active]
- [graphify](/tools/graphify-labs-graphify.md) - Turn any code or documentation into a queryable knowledge graph (★ 82,139) [Very active]

_+ 2 more not listed._

## Adoption goal

Key Insights for Using rag_api as an ID-based RAG FastAPI Tool with Langchain and PostgreSQL/pgvector Integration

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/danny-avila-rag-api`](/api/graphcanon/tools/danny-avila-rag-api)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
