Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(spacy-embeddings): added docs for spacy embeddings. #2184

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs.trychroma.com/pages/integrations/_sidenav.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const items = [
{ href: '/integrations/jinaai', children: 'JinaAI' },
{ href: '/integrations/roboflow', children: 'Roboflow' },
{ href: '/integrations/ollama', children: 'Ollama Embeddings' },
{ href: '/integrations/spacy', children: 'Spacy Embeddings' }
]
},
{
Expand Down
18 changes: 18 additions & 0 deletions docs/docs.trychroma.com/pages/integrations/spacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
---

# spaCy

Pre-trained embeddings that are available from [spaCy](https://spacy.io/models/) can be used for encoding text into vectors. They are fast, robust and good alternative for a lot of language models. To use spacy models in embedding function we have to install spacy module and also download a model of our choice. Please use the below snippet to install and download a model of our choice.

```pip install spacy```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add this in a bash block for better readability.

Copy link
Author

@Vishnunkumar Vishnunkumar May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved changes, let me know if any resolutions are required.


```spacy download model_name```

For the list models please visit: [spacy-models](https://spacy.io/models/)

```python
import chromadb.utils.embedding_functions as embedding_functions
ef = embedding_functions.SpacyEmbeddingFunction(model_name="en_core_web_md")
embeddings = ef(["text-1", "text-2"])
```
Loading