Spaces:
Runtime error
Runtime error
im
commited on
Commit
·
7059ad1
1
Parent(s):
92b778c
add vector database 3d space visualisation
Browse files
app.py
CHANGED
@@ -592,9 +592,9 @@ st.write("""\
|
|
592 |
|
593 |
The retrieval of documents based on search terms involves two main steps:
|
594 |
|
595 |
-
Vectorization of the search query
|
596 |
|
597 |
-
Vector similarity search
|
598 |
This is typically done using a distance metric like Euclidean distance or cosine similarity. The documents
|
599 |
corresponding to these vectors are returned as the search results.
|
600 |
|
|
|
592 |
|
593 |
The retrieval of documents based on search terms involves two main steps:
|
594 |
|
595 |
+
- **Vectorization of the search query**: The search query is converted into a vector using the same process used to vectorize the documents in the database.
|
596 |
|
597 |
+
- **Vector similarity search**: The vector database then identifies the vectors that are closest to the query vector.
|
598 |
This is typically done using a distance metric like Euclidean distance or cosine similarity. The documents
|
599 |
corresponding to these vectors are returned as the search results.
|
600 |
|