Skip to content

Commit

Permalink
Incorporate elliott's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkozakov authored Dec 1, 2024
1 parent f69d404 commit 863f192
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fern/pages/text-embeddings/reranking/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ docs = [
"Charlotte Amalie is the capital and largest city of the United States Virgin Islands. It has about 20,000 people. The city is on the island of Saint Thomas.",
"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district. The President of the USA and many major national government offices are in the territory. This makes it the political center of the United States of America.",
"Capital punishment (the death penalty) has existed in the United States since before the United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states. The federal government (including the United States military) also uses capital punishment."]
results = co.rerank(model="rerank-english-v3.0", query=query, documents=docs, top_n=5, return_documents=True)
results = co.rerank(model="rerank-v3.5", query=query, documents=docs, top_n=5)
```

**Response**
Expand Down Expand Up @@ -107,7 +107,7 @@ docs = [
{"Title":"The Capital of United States Virgin Islands","Content":"Charlotte Amalie is the capital and largest city of the United States Virgin Islands. It has about 20,000 people. The city is on the island of Saint Thomas."},
{"Title":"Washington D.C.","Content":"Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district. The President of the USA and many major national government offices are in the territory. This makes it the political center of the United States of America."},
{"Title":"Capital Punishment in the US","Content":"Capital punishment (the death penalty) has existed in the United States since before the United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states. The federal government (including the United States military) also uses capital punishment."}]
results = co.rerank(model="rerank-english-v3.0", query=query, documents=docs, rank_fields=['Title','Content'],top_n=5, return_documents=True)
results = co.rerank(model="rerank-v3.5", query=query, documents=docs, rank_fields=['Title','Content'],top_n=5, return_documents=True)

```

Expand Down Expand Up @@ -172,7 +172,7 @@ In the `docs` parameter, we are passing in a list of objects which have the key

## Multilingual Reranking

Cohere offers a multilingual model, `rerank-multilingual-v3.0`. Please note that performance may vary across languages. The model is trained on the following languages:
Cohere's `rerank-v3.5` and `rerank-multilingual-v3.0` models have been trained for performance across a variety of languages. Please note that performance may vary across languages. The model is trained on the following languages:

| ISO Code | Language Name |
| -------- | -------------- |
Expand Down
2 changes: 1 addition & 1 deletion fern/pages/v2/text-embeddings/reranking/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ In the `documents` parameter, we are passing in a list YAML strings, representin

## Multilingual Reranking

Cohere offers a multilingual model, `rerank-multilingual-v3.0`. Please note that performance may vary across languages. The model is trained on the following languages:
Cohere's `rerank-v3.5` and `rerank-multilingual-v3.0` models have been trained for performance across a variety of languages. Please note that performance may vary across languages. The model is trained on the following languages:

| ISO Code | Language Name |
| -------- | -------------- |
Expand Down
2 changes: 2 additions & 0 deletions fern/v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ navigation:
path: pages/going-to-production/rate-limits.mdx
- page: Going Live
path: pages/going-to-production/going-live.mdx
- page: Deprecations
path: pages/going-to-production/deprecation.mdx
- page: How Does Cohere Pricing Work?
path: pages/going-to-production/how-does-cohere-pricing-work.mdx
- section: Integrations
Expand Down
2 changes: 2 additions & 0 deletions fern/v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ navigation:
path: pages/going-to-production/rate-limits.mdx
- page: Going Live
path: pages/going-to-production/going-live.mdx
- page: Deprecations
path: pages/going-to-production/deprecation.mdx
- page: How Does Cohere Pricing Work?
path: pages/going-to-production/how-does-cohere-pricing-work.mdx
- section: Integrations
Expand Down

0 comments on commit 863f192

Please sign in to comment.