基礎於自己pdf的AI問答

Steven Wang
Nov 29, 2023

--

這篇文章架構完整但是不能執行

檢查一下是API更新語法有不一樣

We will use OpenAI’s ada002 embeddings model to create embeddings for each chunk.這一段修改如下

Now we can search for the most similar embeddings based on a user’s input. We will use the new OpenAI gpt-3.5-turbo model to generate a response.這一段修改如下

改好就可以執行歐

後續大量input 某一個方向的pdf files可實現商業應用的場景,建立自己的AI問答知識庫

--

--