Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


That's great - thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: