Hi @Logan M. We noticed something strange whilst removing our document store and index store from our Llama index storage context. So basically we had the idea that our Docstore and index store were not really useful since our vectore store (PgVector) already contains all of the nessesary info for our app to function.
So basically our question is: Why does our app still fully work after removing the Document store and Index store that uses MongoDB from our service context?
We changed:
document_store = MongoDocumentStore.from_uri(uri=MONGO_DB_URL)
index_store = MongoIndexStore.from_uri(uri=MONGO_DB_URL)
vector_store = PGVectorStore.from_params(
async_connection_string=f"postgresql+asyncpg://{user}:{password}@{host}:{port}/{database}",
connection_string=f"postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}?sslmode=require",
table_name=PG_VECTOR_DATABASE_DOC_TABLE_NAME,
embed_dim=1536,
hybrid_search=True,
use_jsonb=True,
)
storage_context = StorageContext.from_defaults(
docstore=document_store,
index_store=index_store,
vector_store=vector_store,
)
To
vector_store = PGVectorStore.from_params(
async_connection_string=f"postgresql+asyncpg://{user}:{password}@{host}:{port}/{database}",
connection_string=f"postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}?sslmode=require",
table_name=PG_VECTOR_DATABASE_DOC_TABLE_NAME,
embed_dim=1536,
hybrid_search=True,
use_jsonb=True,
)
storage_context = StorageContext.from_defaults(
vector_store=vector_store,
)
It would be really nice if you could maybe help us learn why the docstore and index store are relevant in the first place and what the implications could be of removing this?