forked from cheshire-cat-ai/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cheshire-cat-ai:main' into main
- Loading branch information
Showing
8 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# Vector Memory | ||
|
||
When we talk about Vector Memory we talk about Vector Database. | ||
A Vector Database is a particular kind of DB that stores information in form of high-dimensional vectors called embeddings. | ||
The embeddings are representations of text, image, sounds, ... | ||
|
||
![word_embeddings](../assets/img/vector_memory/word_embeddings.png) | ||
|
||
As Vector Memory the Cheshire-Cat using [Qdrant])(https://qdrant.tech/), the VectorDBs offer also optimized methods for information retrieval usually based on [Cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity). From wikipedia | ||
|
||
> *"Cosine similarity is a measure of similarity between two non-zero vectors defined in an inner product space. Cosine similarity is the cosine of the angle between the vectors; that is, it is the dot product of the vectors divided by the product of their lengths. It follows that the cosine similarity does not depend on the magnitudes of the vectors, but only on their angle."* | ||
![cosine similarity](../assets/img/vector_memory/cosine.png) | ||
|
||
## Semantic Search | ||
|
||
Semantic search seeks to improve search accuracy by understanding the content of the search query. The idea is to create an high-dimensional semantic space and at search time to find the nearest point (documents) to our questions. | ||
|
||
To create the vectors you must use an [encoder](https://cheshire-cat-ai.github.io/docs/llm-concepts/encoder/), the vector are stored on the vector memory, when a query is done the encoder calculates its embedding, the VectorDB calculates the cosine similaity between query and stored points and the K nearest are returned. | ||
|
||
![semantic_search](https://raw.githubusercontent.com/UKPLab/sentence-transformers/master/docs/img/SemanticSearch.png) | ||
|
||
### Search in high-dimensional spaces | ||
|
||
Since the KNN is an algorithm whose performance degrades as the number of comparisons to be made increases, and since VectorDBs can contain as many as billions of vectors the technique used to efficiently find the closest points in high-dimensional spaces is usually [Approximate Nearest Neighbors](https://www.youtube.com/watch?v=DRbjpuqOsjk). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# 👋 Made with the Cat | ||
|
||
If you're curious to see what people have already done with the Cat, visit our dedicated | ||
[:fontawesome-brands-discord: Discord Channel!](https://discord.com/channels/1092359754917089350/1099439547500220427) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
# 📥 Installing a Plugin from the Registry | ||
# 📥 Installing a Plugin from the Registry | ||
|
||
Installing plugins from our registry is a seamless process that enhances your Cheshire Cat AI experience. Whether you're seeking specific functionalities or exploring new features, our registry offers a diverse range of plugins ready for installation. | ||
|
||
## Through the Admin Dashboard | ||
|
||
1. **Navigation**: Access the Cheshire Cat AI Admin. | ||
2. **Plugins Tab**: Click on the "Plugins" tab within the dashboard. | ||
3. **Search and Filter**: Use the search or filter options to locate your desired plugin. | ||
4. **Installation**: Once you've found the plugin, click the "Install" button. | ||
5. **Wait for Completion**: Allow the installation process to complete. Although our dashboard doesn't feature an automatic refresh mechanism, wait for a few seconds and manually refresh your browser page. | ||
|
||
|
||
![Admin plugin install from registry](../assets/img/admin_screenshots/install-plugin-from-registry.gif) | ||
|
||
## Manual Installation | ||
|
||
For those inclined towards manual installation, follow these steps: | ||
|
||
1. **Download the Zip**: Access the plugin of interest [in the registry](https://github.com/cheshire-cat-ai/plugins) following the GitHub URL and download its zip file. | ||
2. **Upload**: In the top right corner of the Plugins page, locate and click the "Upload Plugin" button. | ||
3. **Upload Zip**: Upload the downloaded zip file using this feature. | ||
|
||
Manual installation grants users more control over the process and facilitates the installation of specific plugins outside the registry itself. | ||
|
||
## Post-Installation Steps | ||
|
||
After installing a plugin, consider these steps: | ||
|
||
- **Refresh**: Manually refresh the page in your browser after a few moments. This ensures any freshly installed plugins display accurately within the dashboard. | ||
- **Settings Configuration**: If the newly installed plugin requires setup or configuration, look for the cog icon associated with the plugin. Click on it to access and adjust the plugin's settings according to your preferences. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters