Hacker News new | ask | show | jobs
by Hyzer 1208 days ago
Probably the embeddings API. This guide is what helped me understand the concept https://github.com/openai/openai-cookbook/blob/main/examples...

tl;dr is that you can pre-process each chunk of your database and use embeddings to quickly look up which chunk is most similar to the user's query, and then prepend that chunk to the user's query before giving it to GPT, so that GPT has the relevant context to give an answer.

1 comments

Interesting. Still pretty limiting but I can see creative ways of working around the limitations. Thanks for sharing!