#2323rd of 34 in RAG and search
serverless-chat-langchainjs
RAG chatbot sample on Azure Functions, Cosmos DB and LangChain.js
- Stars
- 869
- License
- MIT
- Last commit
- Oct 2026
- Language
- TypeScript
850 on 27 Apr 2026869 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A TypeScript sample that answers questions over PDF documents using LangChain.js, with a Lit chat web component on Azure Static Web Apps and an Azure Functions API. Azure Cosmos DB for NoSQL stores vectors and per-user chat history, and Blob Storage holds the source files. It runs against Azure OpenAI or locally with Ollama (llama3.1 and nomic-embed-text).
Who it is for: JavaScript developers building RAG chat apps on Azure
Strengths
- Full path wired: ingestion, vector store, retrieval, chat history and web UI
- Runs locally with Ollama, so no cloud cost for testing
- One-command Azure deploy with azd up, plus optional CI/CD via azd pipeline config
- Uses the HTTP protocol for AI chat apps between web app and API
Weaknesses
- Tied to Azure services: Functions, Static Web Apps, Cosmos DB, Blob Storage
- Azure deploy needs Azure OpenAI access and role-assignment permissions
- Local Ollama models may not follow citation and follow-up question formatting
- Sample data is a fictitious company; ingestion is shown for PDFs in /data
What it needs
- TypeScript, Azure OpenAI, Ollama llama3.1, Ollama nomic-embed-text
- Needs Azure Static Web Apps, Azure Functions, Azure Cosmos DB for NoSQL, Azure Blob Storage, Azure OpenAI, Azure Developer CLI, Node.js 20+, Ollama (local mode)
Also in RAG and search
See all 34| Rank | Project | Score |
|---|---|---|
| #21 | rag-postgres-openai-pythonRAG over Postgres table rows with hybrid search and SQL filters | 43 out of 100 |
| #22 | generativeaiexamplesNVIDIA notebooks and sample apps for RAG, agents and NeMo microservices | 42 out of 100 |
| #24 | ai-starter-kitSambaNova Python kits for document RAG, search assistant, function calling | 40 out of 100 |
| #25 | azure-search-openai-javascriptTypeScript RAG on Azure AI Search with separate indexer and search services | 39 out of 100 |
| #26 | llm-answer-enginePerplexity-style Next.js answer engine over Brave search results | 36 out of 100 |