2 ms·
You shove the whole corpus in a vector db using embeddings, query the nearest neighbors to an input and inject those into a prompt to pass to GPT. https://lang
by KidComputer 4y ago
You shove the whole corpus in a vector db using embeddings, query the nearest neighbors to an input and inject those into a prompt to pass to GPT.
https://langchain.readthedocs.io/en/latest/modules/chains/combine_docs_examples/chat_vector_db.html https://langchain.readthedocs.io/en/latest/modules/chains/co...