{"id":13457202,"url":"https://github.com/langchain-ai/chat-langchainjs","last_synced_at":"2025-05-16T07:00:19.960Z","repository":{"id":221618544,"uuid":"754290087","full_name":"langchain-ai/chat-langchainjs","owner":"langchain-ai","description":"💬 Chat with the LangChain JS/TS documentation, with sources. 💬","archived":false,"fork":false,"pushed_at":"2025-03-24T22:47:21.000Z","size":170989,"stargazers_count":312,"open_issues_count":10,"forks_count":96,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-12T17:46:03.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chatjs.langchain.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/langchain-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-07T19:05:39.000Z","updated_at":"2025-04-07T06:27:35.000Z","dependencies_parsed_at":"2024-03-11T01:24:20.194Z","dependency_job_id":"92cecc79-73f1-4026-b89c-91baebea1ac4","html_url":"https://github.com/langchain-ai/chat-langchainjs","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":"0.040000000000000036","last_synced_commit":"b535437043989f79fada5fe5fbc8b018e1c7befc"},"previous_names":["langchain-ai/chat-langchainjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fchat-langchainjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fchat-langchainjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fchat-langchainjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fchat-langchainjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langchain-ai","download_url":"https://codeload.github.com/langchain-ai/chat-langchainjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485025,"owners_count":22078764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T08:01:35.643Z","updated_at":"2025-05-16T07:00:19.930Z","avatar_url":"https://github.com/langchain-ai.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","By the LangChain Team"],"sub_categories":[],"readme":"# 🦜️🔗 Chat LangChain.js\n\nThis repo is an implementation of a locally hosted chatbot specifically focused on question answering over the [LangChain documentation](https://langchain.readthedocs.io/en/latest/).\nBuilt with [LangChain](https://github.com/langchain-ai/langchainjs/), and [Next.js](https://nextjs.org).\n\nDeployed version: [chatjs.langchain.com](https://chatjs.langchain.com)\n\n\u003e Looking for the Python version? Click [here](https://github.com/langchain-ai/chat-langchain)\n\n## ✅ Local development\n1. Install dependencies via: `yarn install`.\n2. Set the required environment variables listed inside [`backend/.env.example`](backend/.env.example) for the backend, and [`frontend/.env.example`](frontend/.env.example) for the frontend.\n\n### Ingest\n1. Build the backend via `yarn build --filter=backend` (from root).\n2. Run the ingestion script by navigating into `./backend` and running `yarn ingest`.\n\n### Frontend\n1. Navigate into `./frontend` and run `yarn dev` to start the frontend.\n2. Open [localhost:3000](http://localhost:3000) in your browser.\n\n## 📚 Technical description\n\nThere are two components: ingestion and question-answering.\n\nIngestion has the following steps:\n\n1. Pull html from documentation site as well as the Github Codebase\n2. Load html with LangChain's [RecursiveUrlLoader](https://api.js.langchain.com/classes/langchain_document_loaders_web_recursive_url.RecursiveUrlLoader.html) and [SitemapLoader](https://js.langchain.com/docs/integrations/document_loaders/web_loaders/sitemap)\n3. Split documents with LangChain's [RecursiveCharacterTextSplitter](https://js.langchain.com/docs/modules/data_connection/document_transformers/recursive_text_splitter)\n4. Create a vectorstore of embeddings, using LangChain's [Weaviate vectorstore wrapper](https://js.langchain.com/docs/integrations/vectorstores/weaviate) (with OpenAI's embeddings).\n\nQuestion-Answering has the following steps:\n\n1. Given the chat history and new user input, determine what a standalone question would be using GPT-3.5.\n2. Given that standalone question, look up relevant documents from the vectorstore.\n3. Pass the standalone question and relevant documents to the model to generate and stream the final answer.\n4. Generate a trace URL for the current chat session, as well as the endpoint to collect feedback.\n\n## Documentation\n\nLooking to use or modify this Use Case Accelerant for your own needs? We've added a few docs to aid with this:\n\n- **[Concepts](./CONCEPTS.md)**: A conceptual overview of the different components of Chat LangChain. Goes over features like ingestion, vector stores, query analysis, etc.\n- **[Modify](./MODIFY.md)**: A guide on how to modify Chat LangChain for your own needs. Covers the frontend, backend and everything in between.\n- **[Running Locally](./RUN_LOCALLY.md)**: The steps to take to run Chat LangChain 100% locally.\n- **[LangSmith](./LANGSMITH.md)**: A guide on adding robustness to your application using LangSmith. Covers observability, evaluations, and feedback.\n- **[Production](./PRODUCTION.md)**: Documentation on preparing your application for production usage. Explains different security considerations, and more.\n- **[Deployment](./DEPLOYMENT.md)**: How to deploy your application to production. Covers setting up production databases, deploying the frontend, and more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fchat-langchainjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangchain-ai%2Fchat-langchainjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fchat-langchainjs/lists"}