tryAGI / LangChain

C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
https://tryagi.github.io/LangChain/
MIT License
507 stars 78 forks source link

CharacterTextSplitter #12

Closed HavenDV closed 10 months ago

HavenDV commented 1 year ago

References:

TesAnti commented 10 months ago

Working on this. I want to use this example for tests: https://python.langchain.com/docs/modules/data_connection/document_transformers/text_splitters/character_text_splitter

But it requires "state_of_the_union.txt" as a bit piece of text to work with. May i add this file to repository directly or i should download and cache it during test execution?

HavenDV commented 10 months ago

You can add this file directly. Check LangChain.Splitters.CSharp.UnitTests to see how to add and use it quickly.