Skip to content

Commit 075f2bb

Browse files
committed
added new sample
1 parent 2ed3966 commit 075f2bb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

db/samples/sample-data.sql

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,23 @@ exec dbo.add_sample '
321321
"authors": ["Davide Mauri", "Pooja Kamath"],
322322
"languages": ["T-SQL", "Python", ".NET", "C#"],
323323
"services": ["Azure SQL"],
324-
"license": "MIT"
324+
"license": "MIT"
325+
}
326+
}
327+
';
328+
329+
exec dbo.add_sample '
330+
{
331+
"name": "Hybrid Search",
332+
"description": "This sample shows how to combine Fulltext search in Azure SQL database with BM25 ranking and cosine similarity ranking to do hybrid search.",
333+
"notes": "In this sample the local model multi-qa-MiniLM-L6-cos-v1 to generate embeddings. The Python script ./python/hybrid_search.py shows how to use Python to generate the embedding do similarity search in Azure SQL databaseuse Fulltext search in Azure SQL database with BM25 rankingdo re-ranking applying Reciprocal Rank Fusion (RRF) to combine the BM25 ranking with the cosine similarity ranking.",
334+
"url": "https://github.com/Azure-Samples/azure-sql-db-vector-search/tree/main/Hybrid-Search",
335+
"details": {
336+
"authors": ["Davide Mauri"],
337+
"languages": ["T-SQL", "Python"],
338+
"services": ["Azure SQL"],
339+
"license": "MIT",
340+
"tags": ["BM25", "RRF"]
325341
}
326342
}
327343
';

0 commit comments

Comments
 (0)