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

Add semantic search docs #218

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion fern/pages/v2/text-embeddings/semantic-search-embed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Semantic search solves the problem faced by the more traditional approach of lex
```python PYTHON
import cohere
import numpy as np
co = cohere.Client(api_key="YOUR_API_KEY") # Get your free API key: https://dashboard.cohere.com/api-keys
co = cohere.ClientV2(api_key="YOUR_API_KEY") # Get your free API key: https://dashboard.cohere.com/api-keys
```

The Embed endpoint takes in texts as input and returns embeddings as output.
Expand Down
2 changes: 2 additions & 0 deletions fern/v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ navigation:
contents:
- page: Introduction to Embeddings at Cohere
path: pages/text-embeddings/embeddings.mdx
- page: Semantic Search with Text Embeddings
path: pages/text-embeddings/semantic-search-embed.mdx
- page: Multimodal Embeddings
path: pages/text-embeddings/multimodal-embeddings.mdx
- page: Batch Embedding Jobs
Expand Down
4 changes: 3 additions & 1 deletion fern/v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ navigation:
- section: Text Embeddings (Vectors, Search, Retrieval)
contents:
- page: Introduction to Embeddings at Cohere
path: pages/v2/text-embeddings/embeddings.mdx
path: pages/text-embeddings/embeddings.mdx
- page: Semantic Search with Text Embeddings
path: pages/v2/text-embeddings/semantic-search-embed.mdx
- page: Multimodal Embeddings
path: pages/v2/text-embeddings/multimodal-embeddings.mdx
- page: Batch Embedding Jobs
Expand Down
Loading