Examples
Query
Query your documents using ZeroEntropy
After uploading some documents to your collection, you can start querying them. Below are some examples of how to do this using the ZeroEntropy SDK for Python and TypeScript.
Query for top k documents
In the examples/upload section, we uploaded a document with the text “My favorite apple is the Granny Smith.”.
Query for top k pages
In the examples/upload section, we uploaded a document with two pages of text about apples and search.
Query for top k snippets with metadata filtering
In the examples/upload section, we uploaded a pdf which was an arxiv paper about RAG evaluation in the “pdfs” collection.
The pdf was uploaded with the metadata "arxiv"
and "research"
.
For more information on metadata filtering, see the metadata filtering section.