Overview
This repository provides an AI-powered Retrieval-Augmented Generation (RAG) document question-answering system. It is built with ASP.NET Core 8, PostgreSQL with pgvector, OpenAI, and an Angular chat UI. The backend ingests PDF and TXT documents, extracts text, splits documents into overlapping chunks, generates OpenAI embeddings, stores them in PostgreSQL using pgvector, performs semantic search, retrieves relevant chunks, builds grounded RAG context, and uses an OpenAI LLM to generate answers. The Angular app provides a chat interface over POST /api/chat. The system displays source documents, chunks, similarity scores, and retrieved chunk evidence, and instructs the model to refuse an answer when the information cannot be determined from the indexed documents. Persistent conversation history, streaming, authentication, OCR, and AI agents are not implemented. The architecture follows Clean Architecture with API, Application, Domain, and Infrastructure layers. The RAG pipeline includes document upload, text extraction, chunking, embedding, semantic search, context construction, grounded prompt, and OpenAI LLM answer generation with sources. The Chat API is single-turn and does not store conversation history.
Pricing
Free
Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.
Visit WebsitePrices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.
Use Cases
- Teams use the system to upload PDF and TXT documents for indexing and question answering.
- Teams use the system to extract text from uploaded documents.
- Teams use the system to split documents into overlapping chunks for embedding.
- Teams use the system to generate OpenAI embeddings for document chunks.
- Teams use the system to store embeddings in PostgreSQL using pgvector.
- Teams use the system to perform semantic search over stored document chunks.
- Teams use the system to retrieve relevant document chunks and build grounded RAG context.
- Teams use the system to generate answers with an OpenAI LLM and display source documents, chunks, similarity scores, and retrieved chunk evidence.
Features
AI assistant
Natural language interface
Workflow automation
Reviews
No reviews yet. Be the first to share your experience!