Retrieving NebulaGraph Using GPT2 Model in Langchain-Chatchat Project

Retrieving NebulaGraph Using GPT2 Model in Langchain-Chatchat Project

In the official example, chain = NebulaGraphQAChain.from_llm(ChatOpenAI(temperature=0), graph=graph, verbose=True) is used to retrieve from the NebulaGraph database. This article introduces the idea and implementation of replacing ChatOpenAI with GPT2, without considering the performance for now. The reason for not using ChatGLM2 is due to the slow model loading and debugging inconvenience, but replacing GPT2 with … Read more