Skip to content

feat(retrievers): add SpecStream web search retriever - #895

Open
Specstreamai wants to merge 1 commit into
Cinnamon:mainfrom
Specstreamai:feat/specstream-web-search
Open

Specstreamai wants to merge 1 commit into
Cinnamon:mainfrom
Specstreamai:feat/specstream-web-search

Conversation

@Specstreamai

Copy link
Copy Markdown

Summary

Adds an optional SpecStream live web search retriever alongside tavily_web_search.py and jina_web_search.py:

  • Adds libs/kotaemon/kotaemon/indices/retrievers/specstream_web_search.py implementing WebSearch(BaseComponent) with requests (no new dependencies). Calls POST https://api.specstream.ai/v1/web-search with SPECSTREAM_API_KEY bearer auth and maps sources[] into RetrievedDocument entries using excerpt (falling back to snippet).
  • Documents the optional backend comment in flowsettings.py next to jina_web_search.WebSearch.
  • Adds mocked unit tests in libs/kotaemon/tests/test_specstream_web_search.py.

Verification

  • pytest -q libs/kotaemon/tests/test_specstream_web_search.py: 2 passed.
  • ruff check on both added files: 0 errors.

Disclosure: I am the founder of SpecStream.

This branch has not been deployed

No deployments
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