langchain/docs
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
..
api_reference use top nav docs (#8090) 2023-07-21 13:52:03 -07:00
docs_skeleton mv eval docs (#8209) 2023-07-24 16:31:20 -07:00
extras Added stop sequence support to replicate (#8107) 2023-07-24 17:34:13 -07:00
snippets Bagatur/vercel test 3 (#8188) 2023-07-24 10:11:54 -07:00
.local_build.sh Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
package-lock.json docs: New experimental UI for Mendable Search (#6558) 2023-07-03 20:52:13 +01:00
vercel_requirements.txt use top nav docs (#8090) 2023-07-21 13:52:03 -07:00