|
|
|
|
|
by tunesmith
1163 days ago
|
|
So.... if I wrote a book manuscript, and wanted an LLM to help me track plot holes by asking it questions about it, I can't do that with token limits (aside from various summarization tricks people use with ChatGPT), but I could somehow parse/train a system to represent the manuscript in the vector database and hook that up with my LLM? |
|
When you want to query against your manuscript, you call the OpenAI API for calculating a vector embedding for your query, locally find the chunks "near" your query, concatenate these chunks, then pass this context text with your query to GPT-3.5turbo or GPT-4.0.
I have written up small examples for doing this in Swift [1] and Common Lisp [2].
[1] https://github.com/mark-watson/Docs_QA_Swift
[2] https://github.com/mark-watson/docs-qa