kylestratis / llm-knowledge-agent

MIT License
2 stars 0 forks source link

Reduce long texts #12

Open kylestratis opened 1 year ago

kylestratis commented 1 year ago

The cohere summarize API has a limit of 100K characters. This is fine for most articles, but we want to be able to handle large texts as well.

Some solutions to explore:

kylestratis commented 1 year ago

langchain has a chunking tool for this: https://github.com/hwchase17/chroma-langchain/blob/master/qa.ipynb