Skip to content

Commit

Permalink
corrected lefover copypasta comment and hints referring to mongodb (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
billzajac authored Jun 26, 2024
1 parent 6382477 commit 663e170
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions docs/docs/module_guides/loading/ingestion_pipeline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,21 @@ from llama_index.embeddings.openai import OpenAIEmbedding
from llama_index.core.node_parser import SentenceSplitter
from llama_index.core.extractors import TitleExtractor
from llama_index.core.ingestion import IngestionPipeline, IngestionCache
from llama_index.core.ingestion.cache import RedisCache
from llama_index.storage.kvstore.redis import RedisKVStore as RedisCache


ingest_cache = IngestionCache(
cache=RedisCache.from_host_and_port(host="127.0.0.1", port=6379),
collection="my_test_cache",
)

pipeline = IngestionPipeline(
transformations=[
SentenceSplitter(chunk_size=25, chunk_overlap=0),
TitleExtractor(),
OpenAIEmbedding(),
],
cache=IngestionCache(
cache=RedisCache(
redis_uri="redis://127.0.0.1:6379", collection="test_cache"
)
),
cache=ingest_cache,
)

# Ingest directly into a vector db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


class PostgresIndexStore(KVIndexStore):
"""Mongo Index store.
"""Postgres Index store.
Args:
mongo_kvstore (MongoDBKVStore): MongoDB key-value store
postgres_kvstore (PostgresKVStore): Postgres key-value store
namespace (str): namespace for the index store
"""
Expand All @@ -18,7 +18,7 @@ def __init__(
postgres_kvstore: PostgresKVStore,
namespace: Optional[str] = None,
) -> None:
"""Init a MongoIndexStore."""
"""Init a PostgresIndexStore."""
super().__init__(postgres_kvstore, namespace=namespace)

@classmethod
Expand Down

0 comments on commit 663e170

Please sign in to comment.