Skip to content
Discussion options

You must be logged in to vote

Hey @Ayoubimad hopefully the examples below illustrate how to do this. They are taken from the API/SDK documentation here. Let me know if this doesn't achieve what you're trying to do.

from r2r import R2RClient

client = R2RClient()
# if using auth, do client.login(...)

# Basic search
response = client.retrieval.search(
    query="What is DeepSeek R1?",
)

# Advanced mode with specific filters
response = client.retrieval.search(
    query="What is DeepSeek R1?",
    search_mode="advanced",
    search_settings={
        "filters": {"document_id": {"$eq": "e43864f5-a36f-548e-aacd-6f8d48b30c7f"}},
        "limit": 5
    }
)

# Using hybrid search
response = client.retrieval.search(
    query=

Replies: 1 comment 1 reply

Comment options

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

Answer selected by NolanTrem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants