- Issue created by @Nikro
- 🇪🇸Spain Nikro Benalmadena, Malaga
Okay now that we cleared - https://www.drupal.org/project/ai/issues/3525296 ✨ Add optional RAW vectors in RAG results Active
And https://www.drupal.org/project/ai_vdb_provider_postgres/issues/3525329 ✨ Implement exposing raw vector Active--
Along the way of implementation, realized that https://www.drupal.org/project/ai/issues/3488114 ✨ Add support for rerank operation type Active - reranking operation wasn't done yet - so we can't proceed with the FULL reranking (cross-encoder) - so, for now we can just reuse the same embedding model (especially if it's "instruct" bi-encoder) - and use it.
I tested and it does help, it pulled some results closer (i.e. 20 candidates and 5 cut-off, those 5 usually weren't always the same as top 5 would have been). Difference is small but still.
NOTE: this is special for instruct-based embedding models.