We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abc099 commit d8a836aCopy full SHA for d8a836a
docs/source/user_guide/large_language_model/retrieval.rst
@@ -95,8 +95,7 @@ Here is an example code snippet for OpenSearchVectorSearch deployment:
95
retriever = opensearch_vector_search.as_retriever(search_kwargs={"vector_field": "embeds",
96
"text_field": "text",
97
"k": 3,
98
- "size": 3},
99
- max_tokens_limit=1000)
+ "size": 3})
100
qa = RetrievalQA.from_chain_type(
101
llm=oci_llm,
102
chain_type="stuff",
@@ -181,6 +180,7 @@ Here is an example code snippet for FAISS deployment:
181
180
)
182
183
from ads.llm.deploy import ChainDeployment
+ model = ChainDeployment(qa)
184
model.prepare(force_overwrite=True,
185
inference_conda_env="your_conda_pack",
186
0 commit comments