phidatahq / phidata

Build AI Agents with memory, knowledge, tools and reasoning. Chat with them using a beautiful Agent UI.
https://docs.phidata.com
Mozilla Public License 2.0
15.58k stars 2.14k forks source link

Enable reranking for all vectordb instances in search #1417

Open osushinekotan opened 2 weeks ago

osushinekotan commented 2 weeks ago

1416

Summary

This PR introduces a unified reranker implementation within phi.reranker to support reranking functionality across various vectordb instances, not limited to lancedb. It adds the CohereReranker to allow consistent reranking behavior across different vector databases.

Changes

Verified functionality with CohereReranker specifically on lancedb to ensure consistent behavior.

ashpreetbedi commented 1 week ago

this is an exceptional pr @osushinekotan

ashpreetbedi commented 1 week ago

Remarkable work! I'm going to merge, test and release tomorrow