News for hackers. Stuff that matters.
Re:Anthropic - Introducing 100K Token Context Windows, Aroun... by tuanacelik on Friday May 12, 2023 @03:59AM (#35913305)
Indeed this tutorial on Haystack is a good one as an example: https://haystack.deepset.ai/tutorials/22_pipeline_with_promp... It combines a retrieval step followed by a prompt layer which inserts the relevant context into the prompt. You can however change the 'retrieval step' with something that uses a proper embedding model and OpenAI also provides those if you want to. I tend to use lighter (cheaper) OSS models for this step though. PS: There's some functionality in the PromptNode to make sure you don't exceed prompt limit.
Re:Anthropic - Introducing 100K Token Context Windows, Aroun... by HarHarVeryFunny on Friday May 12, 2023 @02:48PM (#35920500)
That's great - thanks!