added seperator arg
Browse filesFiles changed (2)
41 unmodified lines42434445464785 unmodified lines13313413513613713813941 unmodified lines- `filter` (str): The filter to apply to the documents. Default: null- `paths_to_data` (List[str]): The paths to the data to store in the database at instantiation. Default: []- `chunk_size` (int): The size of the chunks to split the documents into. Default: 700- `chunk_overlap` (int): The overlap between the chunks. Default: 0- `persist_directory` (str): The directory to persist the database. Default: "./demo_db_dir"85 unmodified linesfull_docs = []text_splitter = CharacterTextSplitter(chunk_size=self.flow_config["chunk_size"],chunk_overlap=self.flow_config["chunk_overlap"])for path in self.flow_config["paths_to_data"]:41 unmodified lines4243444546474885 unmodified lines13413513613713813914014141 unmodified lines- `filter` (str): The filter to apply to the documents. Default: null- `paths_to_data` (List[str]): The paths to the data to store in the database at instantiation. Default: []- `chunk_size` (int): The size of the chunks to split the documents into. Default: 700- `seperator` (str): The separator to use to split the documents. Default: "\n"- `chunk_overlap` (int): The overlap between the chunks. Default: 0- `persist_directory` (str): The directory to persist the database. Default: "./demo_db_dir"85 unmodified linesfull_docs = []text_splitter = CharacterTextSplitter(chunk_size=self.flow_config["chunk_size"],chunk_overlap=self.flow_config["chunk_overlap"],separator=self.flow_config["separator"])for path in self.flow_config["paths_to_data"]:
15 unmodified lines1617181915 unmodified linespaths_to_data: []chunk_size: 700chunk_overlap: 0persist_directory: ./demo_db_dir15 unmodified lines161718192015 unmodified linespaths_to_data: []chunk_size: 700chunk_overlap: 0separator: "\n"persist_directory: ./demo_db_dir
ChromaDBFlow.py+3-1
ChromaDBFlow.yaml+1