POST 1 of 5 MorningRAGConcept
Your embedding model decides what 'similar' means
Cosine similarity returns a number. The embedding model decided what counts as 'close'. A general-purpose model (text-embedding-3-small) thinks 'How do I refund?' and 'What's your refund policy?' are similar. A bad model might rank 'How do I refund?' close to 'How do I sign up?' because both start with 'How do I'. For your domain, evaluate. Pick a 'small' good general model + a domain test set. Measure recall@5 against ground truth queries. Switch models if you can do better.
#RAG#LLM#VectorDatabase#AI#100DaysOfCode#Embeddings