TF-IDF means term-frequency times inverse document-frequency.This notebook goes over how to use a retriever that under the hood uses TF-IDF using
scikit-learn package.
For more information on the details of TF-IDF see this blog post.
Create New Retriever with Texts
Create a New Retriever with Documents
You can now create a new retriever with the documents you created.Use Retriever
We can now use the retriever!Save and load
You can easily save and load this retriever, making it handy for local development!Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.