Skip to content

Python: limit the number of retrieved documents when using AzureCosmosDBNoSQLCollection #11773

Answered by westey-m
vslepakov asked this question in Q&A
Discussion options

You must be logged in to vote

@vslepakov, are you doing a vector search? If so, see here for top and skip support:
https://learn.microsoft.com/en-us/semantic-kernel/concepts/vector-store-connectors/vector-search?pivots=programming-language-python#top-and-skip-1

If you are doing a get, then you have to supply the set of record ids, so this limits the result set already to only include the records you request.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vslepakov
Comment options

Comment options

You must be logged in to vote
1 reply
@vslepakov
Comment options

Answer selected by vslepakov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python Pull requests for the Python Semantic Kernel
3 participants