Thanks! Vector databases store the semantic vector representation of each record and compare it to the query for retrieval, which would give results close to the meaning of the text, but not necessary the text surface. A lexical search, i.e. BM25 and levenshtein distance, seems to work better as translation examples in this case
T-Ragx - Enhancing Translation with RAG-Powered LLMs
Enhancing Translation with RAG-Powered Large Language Models - rayliuca/T-Ragx
![GitHub - rayliuca/T-Ragx: Enhancing Translation with RAG-Powered Large Language Models](https://lemmy.world/pictrs/image/aa1d415d-9f83-480e-9eb8-745fe1c7dc74.png?format=webp&thumbnail=256)
cross-posted from: https://lemmy.ca/post/16866615
> Excited to share my T-Ragx project! And here are some additional learnings for me that might be interesting to some:
>
> - vector databases aren't always the best option
> - Elasticsearch or custom retrieval methods might work even better in some cases
> - LoRA is incredibly powerful for in-task applications
> - The pace of the LLM scene is astonishing
> - TowerInstruct
and ALMA-R
translation LLMs launched while my project was underway
> - Above all, it was so fun!
>
> Please let me know what you think!
T-Ragx - Enhancing Translation with RAG-Powered LLMs
Enhancing Translation with RAG-Powered Large Language Models - rayliuca/T-Ragx
![GitHub - rayliuca/T-Ragx: Enhancing Translation with RAG-Powered Large Language Models](https://sh.itjust.works/pictrs/image/2a700636-604e-4bb0-86e3-f9057f775bb9.png?format=webp&thumbnail=256)
Excited to share my T-Ragx project! And here are some additional learnings for me that might be interesting to some:
- vector databases aren't always the best option
- Elasticsearch or custom retrieval methods might work even better in some cases
- LoRA is incredibly powerful for in-task applications
- The pace of the LLM scene is astonishing
TowerInstruct
andALMA-R
translation LLMs launched while my project was underway
- Above all, it was so fun!
Please let me know what you think!