An AI-powered document intelligence API built during the DataPulse internship program.
Upload documents. Ask questions. Get AI-powered answers. Built with FastAPI, PostgreSQL, LanceDB, and OpenAI.
- FastAPI — API framework
- PostgreSQL — document metadata and query history
- LanceDB — vector database for semantic search
- OpenAI — embeddings and answer generation
git clone <your-repo-url>
cd datapulse-alphapython -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windowspip install -r requirements.txtcp .env.example .env
# Edit .env and add your credentials# TODO: Add Alembic migration commands hereuvicorn app.main:app --reloadpytest tests/ -v| Method | Endpoint | Description |
|---|---|---|
| GET | /health | Health check |
| POST | /ingest | Upload a document |
| POST | /query | Ask a question |
| GET | /documents | List all documents |