Building a knowledge base with OpenAI, LangChain, OpenSearch, and Unstructured
Blog post from Voiceflow
You'll need Node.js 18+ installed on your system, as well as Docker Compose, to run this code. To get started, you should copy and set up the `.env` file with required environment variables. Running the provided command will create several containers, including Redis, Unstructured, OpenSearch, and OpenSearch-dashboards. The OpenSearch dashboard can be accessed at http://localhost:5601. There are multiple API endpoints available, such as `POST /api/add`, `GET /api/live`, and `DELETE /api/collection`, which provide various tasks like adding content to OpenSearch, getting responses using a live webpage or vector store, clearing Redis cache, and deleting collections. You can use the `/api/live` endpoint to get responses without vectorizing the content, and once you've added content to OpenSearch, you can use the `/api/question` endpoint to get answers based on your knowledge base, which can be integrated into Voiceflow Assistants for answering user queries.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.