Skip to content

Improve semantic search retrieval and ranking#236

Merged
user1303836 merged 1 commit intomainfrom
codex/semantic-search-upgrade
Mar 19, 2026
Merged

Improve semantic search retrieval and ranking#236
user1303836 merged 1 commit intomainfrom
codex/semantic-search-upgrade

Conversation

@user1303836
Copy link
Copy Markdown
Owner

Summary

  • switch article search from single summary vectors to chunked raw-content indexing with SQLite chunk metadata and zvec chunk documents
  • rerank retrieved article chunks with a cross-encoder, filter weak matches with a minimum relevance threshold, and clean lore embeddings before indexing/search health checks
  • refresh the Discord /search output with clearer embeds, relevance labels, links, and best-match excerpts
  • add an article search evaluation harness plus config/docs for tuning chunking and reranking

Verification

  • uv run ruff check src/intelstream/config.py src/intelstream/database/models.py src/intelstream/database/repository.py src/intelstream/database/vector_store.py src/intelstream/discord/cogs/lore.py src/intelstream/discord/cogs/search.py src/intelstream/services/article_search.py src/intelstream/services/message_ingestion.py src/intelstream/services/pipeline.py src/intelstream/services/search_eval.py scripts/eval_article_search.py tests/test_database.py tests/test_discord/test_search.py tests/test_services/test_article_search.py tests/test_services/test_pipeline.py tests/test_services/test_search_eval.py tests/test_vector_store.py
  • uv run mypy src/
  • uv run pytest -q (780 passed)

Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@user1303836 user1303836 merged commit e217b80 into main Mar 19, 2026
4 checks passed
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