Skip to content

Commit cd6ac2a

Browse files
committed
Revision
1 parent e32ec25 commit cd6ac2a

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

docs/weaviate/model-providers/_includes/provider.generative.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ def import_data():
464464
# # These parameters are optional
465465
# model="v2",
466466
# temperature=0.7,
467-
# max_tokens=500,
468-
# top_p=0.5,
469-
# system_prompt="You are a ..."
467+
# max_tokens=1024,
468+
# top_p=0.9,
469+
# system_prompt="You are a helpful assistant"
470470
# avoid_commentary=True,
471471
)
472472
# highlight-end
@@ -492,9 +492,9 @@ def import_data():
492492
# # These parameters are optional
493493
# model="v2",
494494
# temperature=0.7,
495-
# max_tokens=500,
496-
# top_p=0.5,
497-
# system_prompt="You are a ..."
495+
# max_tokens=1024,
496+
# top_p=0.9,
497+
# system_prompt="You are a helpful assistant"
498498
# avoid_commentary=True,
499499
),
500500
# Additional parameters not shown

docs/weaviate/model-providers/_includes/provider.generative.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ await client.collections.create({
417417
// These parameters are optional
418418
model: 'v2',
419419
// temperature: 0.7,
420-
// maxTokens: 500,
421-
// topP: 5,
422-
// systemPrompt: 'You are a ...',
420+
// maxTokens: 1024,
421+
// topP: 0.9,
422+
// systemPrompt: 'You are a helpful assistant',
423423
// avoidCommentary: true,
424424
}),
425425
// highlight-end
@@ -435,9 +435,9 @@ response = await myCollection.generate.nearText("A holiday film", {
435435
// These parameters are optional
436436
// model: 'v2',
437437
// temperature: 0.7,
438-
// maxTokens: 500,
439-
// topP: 5,
440-
// systemPrompt: 'You are a ...',
438+
// maxTokens: 1024,
439+
// topP: 0.9,
440+
// systemPrompt: 'You are a helpful assistant',
441441
// avoidCommentary: true,
442442
}),
443443
// highlight-end

docs/weaviate/model-providers/_includes/provider.reranker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
"DemoCollection",
8383
# highlight-start
8484
reranker_config=Configure.Reranker.contextualai(
85-
model="ctxl-rerank-v2-instruct-multilingual"
85+
model="ctxl-rerank-v2-instruct-multilingual",
86+
instruction="Prioritize internal sales documents over market analysis reports. More recent documents should be weighted higher.",
87+
top_n=5
8688
)
8789
# highlight-end
8890
# Additional parameters not shown

docs/weaviate/model-providers/_includes/provider.reranker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ await client.collections.create({
5656
// highlight-start
5757
reranker: weaviate.configure.reranker.contextualai({
5858
model: 'ctxl-rerank-v2-instruct-multilingual',
59+
instruction: 'Prioritize internal sales documents over market analysis reports. More recent documents should be weighted higher.',
60+
topN: 5,
5961
}),
6062
// highlight-end
6163
});

docs/weaviate/model-providers/contextualai/generative.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ image: og/docs/integrations/provider_integrations_contextualai.jpg
88

99
# Contextual AI Generative AI with Weaviate
1010

11+
:::info Added in `v1.34.0`
12+
:::
1113

1214
import Tabs from '@theme/Tabs';
1315
import TabItem from '@theme/TabItem';

docs/weaviate/model-providers/contextualai/reranker.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ image: og/docs/integrations/provider_integrations_contextualai.jpg
88

99
# Contextual AI Reranker Models with Weaviate
1010

11+
:::info Added in `v1.34.0`
12+
:::
1113

1214
import Tabs from '@theme/Tabs';
1315
import TabItem from '@theme/TabItem';
@@ -179,7 +181,7 @@ Any search in Weaviate can be combined with a reranker to perform reranking oper
179181

180182
- `ctxl-rerank-v1-instruct`
181183
- `ctxl-rerank-v2-instruct-multilingual-mini`
182-
- `ctxl-rerank-v2-instruct-multilingual`
184+
- `ctxl-rerank-v2-instruct-multilingual` (default)
183185

184186
## Further resources
185187

0 commit comments

Comments
 (0)