Hey everyone !
I am using this doc to create and send vectors to my redis db :
https://docs.llamaindex.ai/en/stable/examples/ingestion/redis_ingestion_pipeline.html#redis-ingestion-pipelineHowever, even though I am correctly detecting 4 documents, it seems as though none of them are ingested. Am I doing something wrong ? Thanks in advance
PS : Redis should be correctly configured as I can freely set and get keys as well as ping my redis connection
# Embedding model
embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5", device="cpu")
# Configure ingestion pipeline
pipeline = IngestionPipeline(
transformations=[
SentenceSplitter(),
embed_model,
],
docstore=RedisDocumentStore.from_host_and_port(
redis_pwd_host_nms, redis_port
),
vector_store=RedisVectorStore(
index_name="redis_vector_store",
index_prefix="vector_store",
redis_url=f"redis://{redis_pwd_host_nms}:{redis_port}",
),
cache=IngestionCache(
cache=RedisCache.from_host_and_port(redis_pwd_host_nms, redis_port),
collection="redis_cache",
),
docstore_strategy=DocstoreStrategy.UPSERTS,
)
# This will return that 0 Nodes were ingested but got 4 documents
def get_nodes():
# Load data as documents
documents = SimpleDirectoryReader("./light_processed_data", filename_as_id=True).load_data()
nodes = pipeline.run(documents=documents)
return(f"Ingested {len(nodes)} Nodes but had {len(documents)} documents")