langchain/docs/ecosystem
Charlie Holtz 246710def9
Fix Replicate llm response to handle iterator / multiple outputs (#3614)
One of our users noticed a bug when calling streaming models. This is
because those models return an iterator. So, I've updated the Replicate
`_call` code to join together the output. The other advantage of this
fix is that if you requested multiple outputs you would get them all –
previously I was just returning output[0].

I also adjusted the demo docs to use dolly, because we're featuring that
model right now and it's always hot, so people won't have to wait for
the model to boot up.

The error that this fixes:
```
> llm = Replicate(model=“replicate/flan-t5-xl:eec2f71c986dfa3b7a5d842d22e1130550f015720966bec48beaae059b19ef4c”)
>  llm(“hello”)
> Traceback (most recent call last):
  File "/Users/charlieholtz/workspace/dev/python/main.py", line 15, in <module>
    print(llm(prompt))
  File "/opt/homebrew/lib/python3.10/site-packages/langchain/llms/base.py", line 246, in __call__
    return self.generate([prompt], stop=stop).generations[0][0].text
  File "/opt/homebrew/lib/python3.10/site-packages/langchain/llms/base.py", line 140, in generate
    raise e
  File "/opt/homebrew/lib/python3.10/site-packages/langchain/llms/base.py", line 137, in generate
    output = self._generate(prompts, stop=stop)
  File "/opt/homebrew/lib/python3.10/site-packages/langchain/llms/base.py", line 324, in _generate
    text = self._call(prompt, stop=stop)
  File "/opt/homebrew/lib/python3.10/site-packages/langchain/llms/replicate.py", line 108, in _call
    return outputs[0]
TypeError: 'generator' object is not subscriptable
```
2023-04-26 14:26:33 -07:00
..
ai21.md
aim_tracking.ipynb bump version to 131 (#2391) 2023-04-04 07:21:50 -07:00
analyticdb.md Add a full PostgresSQL syntax database 'AnalyticDB' as vector store. (#3135) 2023-04-22 08:25:41 -07:00
apify.md Harrison/apify (#2215) 2023-03-30 20:58:14 -07:00
atlas.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
bananadev.md [DOCS] Assorted wording, punctuation, and consistency revisions (#1443) 2023-03-08 20:16:09 -08:00
cerebriumai.md Add GooseAI, CerebriumAI, Petals, ForefrontAI (#981) 2023-02-13 21:20:19 -08:00
chroma.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
clearml_tracking.ipynb Fix headings in docs (ClearML and Comet) (#2808) 2023-04-13 08:24:16 -07:00
cohere.md fix: numerous broken documentation links (#2070) 2023-03-27 23:07:03 -07:00
comet_tracking.ipynb fix typo in comet_tracking.ipynb (#3505) 2023-04-25 10:50:58 -07:00
databerry.md Harrison/databerry (#2688) 2023-04-10 18:49:47 -07:00
deepinfra.md Add DeepInfra LLM support (#1232) 2023-02-23 07:37:15 -08:00
deeplake.md Harrison/docs cleanup (#2633) 2023-04-09 12:55:22 -07:00
forefrontai.md Add GooseAI, CerebriumAI, Petals, ForefrontAI (#981) 2023-02-13 21:20:19 -08:00
google_search.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
google_serper.md bump version to 131 (#2391) 2023-04-04 07:21:50 -07:00
gooseai.md Add GooseAI, CerebriumAI, Petals, ForefrontAI (#981) 2023-02-13 21:20:19 -08:00
gpt4all.md Fix tiny typo (#2863) 2023-04-13 20:26:26 -07:00
graphsignal.md Update Graphsignal ecosystem page (#2662) 2023-04-10 08:00:26 -07:00
hazy_research.md
helicone.md [DOCS] Assorted wording, punctuation, and consistency revisions (#1443) 2023-03-08 20:16:09 -08:00
huggingface.md fix: numerous broken documentation links (#2070) 2023-03-27 23:07:03 -07:00
jina.md fix: add jina jupyter notebook (#2477) 2023-04-06 12:42:01 -07:00
llamacpp.md cr 2023-04-04 07:25:28 -07:00
milvus.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
modal.md Add Writer, Banana, Modal, StochasticAI (#1270) 2023-02-24 06:58:58 -08:00
myscale.md Harrison/myscale (#3352) 2023-04-22 09:17:38 -07:00
nlpcloud.md
openai.md fix: numerous broken documentation links (#2070) 2023-03-27 23:07:03 -07:00
opensearch.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
petals.md Update petals.md (#1225) 2023-02-22 10:34:16 -08:00
pgvector.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
pinecone.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
predictionguard.md Harrison/prediction guard (#3490) 2023-04-24 22:27:22 -07:00
promptlayer.md fix: numerous broken documentation links (#2070) 2023-03-27 23:07:03 -07:00
qdrant.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
replicate.md Fix Replicate llm response to handle iterator / multiple outputs (#3614) 2023-04-26 14:26:33 -07:00
runhouse.md fixed the Cohere example title (#3053) 2023-04-17 21:02:52 -07:00
rwkv.md Add support for rwkv (#2422) 2023-04-06 14:41:06 -07:00
searx.md searx: implement async + helper tool providing json results (#2129) 2023-03-28 22:49:02 -07:00
serpapi.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
stochasticai.md Add Writer, Banana, Modal, StochasticAI (#1270) 2023-02-24 06:58:58 -08:00
unstructured.md docs: update unstructured detectron install instructions (#2498) 2023-04-06 12:48:19 -07:00
wandb_tracking.ipynb bump version to 131 (#2391) 2023-04-04 07:21:50 -07:00
weaviate.md Updated incorrect link to Weaviate notebook (#3362) 2023-04-22 20:47:41 -07:00
wolfram_alpha.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
writer.md Add Writer, Banana, Modal, StochasticAI (#1270) 2023-02-24 06:58:58 -08:00
yeagerai.md Ecosystem/Yeager.ai (#3239) 2023-04-20 15:20:21 -07:00
zilliz.md Adding milvus/zilliz into docs (#2686) 2023-04-10 18:08:41 -07:00