6 ms·
The gpt_index project looks very promising in this area. "At its core, GPT Index is about: 1. loading in external data (@NotionHQ, @Slack, .txt, etc.) 2. Buil
by localhost 4y ago
The gpt_index project looks very promising in this area.
"At its core, GPT Index is about:
1. loading in external data (@NotionHQ, @Slack, .txt, etc.)
2. Building indices over that data
3. Inputting a prompt -> getting an output!"
https://twitter.com/jerryjliu0/status/1608632335695745024 https://twitter.com/jerryjliu0/status/1608632335695745024
- amelius 4y agoInteresting. How are these indexes stored and how are they fed into the transformer model so that GPT can use them? Does this require an additional training step?
- localhost 4y agoBased on my reading of the docs (I haven't looked at the code), it appears that it uses the existing langchain[1] (which I have used and is excellent) library for constructing longer prompts through a technique known as prompt chaining. So for example, summarizing long documents would involve a map/reduce style effort where you get the LLM to summarize chunks of the document (with some degree of overlap between chunks) and then getting the model to summarize the summaries. For answering "queries", it appears like it iterates over the documents in the store, i.e., NOT using it like an index, and feeding each document as part of the context into the LLM. [1] https://github.com/hwchase17/langchain https://github.com/hwchase17/langchain