langchain/docs/extras/integrations
Taqi Jaffri 8f158b72fc
Added stop sequence support to replicate (#8107)
Stop sequences are useful if you are doing long-running completions and
need to early-out rather than running for the full max_length... not
only does this save inference cost on Replicate, it is also much faster
if you are going to truncate the output later anyway.

Other LLMs support stop sequences natively (e.g. OpenAI) but I didn't
see this for Replicate so adding this via their prediction cancel
method.

Housekeeping: I ran `make format` and `make lint`, no issues reported in
the files I touched.

I did update the replicate integration test and ran `poetry run pytest
tests/integration_tests/llms/test_replicate.py` successfully.

Finally, I am @tjaffri https://twitter.com/tjaffri for feature
announcement tweets... or if you could please tag @docugami
https://twitter.com/docugami we would really appreciate that :-)

Co-authored-by: Taqi Jaffri <tjaffri@docugami.com>
2023-07-24 17:34:13 -07:00
..
callbacks mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
chat mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
document_loaders Add etherscan document loader (#7943) 2023-07-24 17:09:16 -07:00
document_transformers mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
llms Added stop sequence support to replicate (#8107) 2023-07-24 17:34:13 -07:00
memory mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
providers ArangoDB/AQL support for Graph QA Chain (#7880) 2023-07-24 15:16:52 -07:00
retrievers mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
text_embedding Update SageMaker Endpoint Embeddings docs to be up to date with current requirements (#8103) 2023-07-24 13:35:06 -07:00
toolkits mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
tools mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
vectorstores mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00