Find answers from the community

Updated 3 weeks ago

Pipeline not ingesting anything

This post has been deleted.
L
4 comments
documents = SimpleDirectoryReader( "./data", file_metadata=metadatas ).load_data() for doc in documents: doc.doc_id = os.path.basename(doc.metadata["file_name"]) print(documents) new_pipeline = IngestionPipeline( transformations=[ TokenTextSplitter(chunk_size=5, chunk_overlap=0), HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5"), ], docstore=SimpleDocumentStore(), vector_store=SimpleVectorStore() ) nodes = new_pipeline.run(documents) new_pipeline.persist("./persistence/pipeline")
Hello guys...I don't know why the pipeline is not returning any node here. The documents has like 2 o 3 sentences and nothing more...
Solved....I was passing documents in wrong way XD
Add a reply
Sign up and join the conversation on Discord