Skip to content

Add 'instant' to SearchType for lowest latency search#172

Open
devin-ai-integration[bot] wants to merge 2 commits into
masterfrom
devin/1770251332-add-instant-search-type
Open

Add 'instant' to SearchType for lowest latency search#172
devin-ai-integration[bot] wants to merge 2 commits into
masterfrom
devin/1770251332-add-instant-search-type

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds "instant" as a new search type option to the Python SDK. Instant search provides the lowest latency, optimized for real-time applications like autocomplete and live suggestions.

Changes:

  • Added "instant" to the SearchType Literal type
  • Updated SearchType docstring with instant description
  • Updated search method docstrings to include instant in the type parameter options

Review & Testing Checklist for Human

  • Verify backend support: Confirm the Exa API actually accepts type: "instant" and returns results. This SDK change assumes backend support exists.
  • Test with real API call: Run a simple search with type="instant" to verify it works end-to-end

Recommended test:

from exa_py import Exa
exa = Exa()
results = exa.search("test query", type="instant", num_results=5)
print(results)

Notes

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Yi Yang <yi@exa.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant