Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bdb27c6

Browse filesBrowse files
committed
Add distance calculation samples and update README.md
1 parent efe0ded commit bdb27c6
Copy full SHA for bdb27c6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ SUM(v1.[vector_value] * v2.[vector_value]) /
9797
)
9898
```
9999

100-
thanks to columnstore, even on small SKU, the performance can be pretty fast, well within the sub-second goal.
100+
thanks to columnstore, even on small SKU, the performance can be pretty fast, well within the sub-second goal. If you need to use other distance metric, you can find here a description of how to implement the most common one in pure T-SQL: [How to calculate common vectors distances in T-SQL](distance-calculations-in-tsql.md)
101101

102102
## Encapsulating logic to retrieve embeddings
103103

@@ -110,7 +110,7 @@ The described process can be wrapped into stored procedures to make it easy to r
110110

111111
The script `05-find-similar-articles.sql` uses the created stored procedure and the process explained above to find similar articles to the provided text.
112112

113-
## Encapsulating logic to do similarity saerch
113+
## Encapsulating logic to do similarity search
114114

115115
To make it even easier to use, the script `06-sample-function.sql` shows a sample function that can be used to find similar articles by just providing the text, as demonstrated in script `07-sample-function-usage` with the following example:
116116

@@ -142,4 +142,4 @@ A vector is nothing more than a list numbers (in this scope) and list of numbers
142142

143143
## Community Samples
144144

145-
[Use a Poor Developers Vector Database to Implement The RAG Pattern](https://blazorhelpwebsite.com/ViewBlogPost/5066)
145+
[Implement The RAG Pattern](https://blazorhelpwebsite.com/ViewBlogPost/5066)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.