Storage Strategies #1171
-
Exploring ways to implement a custom storage solution to persist data to Postgres. Looking at the import { PGVectorStore, storageContextFromDefaults } from 'llamaindex'
import { CustomDocumentStore, CustomIndexStore } from '../custom.ts'
const storageContext = await storageContextFromDefaults({
docStore: new CustomDocumentStore(...args),
indexStore: new CustomIndexStore(...args),
vectorStores: new PGVectorStore(...args)
}); Are there any helpful guides or examples of a working implementation for this approach? I assume I should just implement the methods that are on the The Python version also implements S3 storage and I understand that the plan is to achieve parity between the two libraries. Are there some particular difficulties with implementing flexible storage in this library that we should know before diving in? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You'll need to implement a doc store and index store for Postgres, similar to
Would be great if you could get this started, we're happy to help with the PR |
Beta Was this translation helpful? Give feedback.
You'll need to implement a doc store and index store for Postgres, similar to
Would be great if you could get this started, we're happy to help with the PR