top of page

Build Your Own Chatbot

RAG

Pinecone & Langchain

OpenAI API

FastAPI (Websocket)

Apifox

Next.js

Store knowledge in Pinecone

Attention:

- When creating a serverless index, the dimension of the index should be the same as the embedding model (OpenAI: 1536)

​

docs.pinecone.io/guides/get-started/build-a-rag-chatbot

​

Invoke the OpenAI LLM API and the knowledge stored in Pinecone

​

platform.openai.com/docs/api-reference/introduction

​

Write the API interface, using WebSocket to implement bidirectional communication

​

fastapi.tiangolo.com/advanced/websockets

​

Debug the API interface

​

apifox.com

​

Render in the front-end project

​

nextjs.org

© 2035 by Leo Zheng

bottom of page