Skip to content

Commit

Permalink
add semantic search to yml (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: trentfowlercohere <[email protected]>
Co-authored-by: trentfowlercohere <[email protected]>
  • Loading branch information
mrmer1 and trentfowlercohere authored Oct 29, 2024
1 parent e36ffbe commit 85c3a87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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

0 comments on commit 85c3a87

Please sign in to comment.