Skip to main content

Interface: CreateCollectionOptions

Defined in: packages/agentos/src/rag/IVectorStore.ts:234

Options for creating a new collection/index in the vector store. CreateCollectionOptions

Properties

overwriteIfExists?

optional overwriteIfExists: boolean

Defined in: packages/agentos/src/rag/IVectorStore.ts:236

If a collection with the same name exists, should it be overwritten?


providerSpecificParams?

optional providerSpecificParams: Record<string, any>

Defined in: packages/agentos/src/rag/IVectorStore.ts:239

Any other parameters specific to the vector store provider for collection creation (e.g., indexing options, cloud region).


replicas?

optional replicas: number

Defined in: packages/agentos/src/rag/IVectorStore.ts:237

Number of replicas for the collection (if supported).


shards?

optional shards: number

Defined in: packages/agentos/src/rag/IVectorStore.ts:238

Number of shards for the collection (if supported).


similarityMetric?

optional similarityMetric: "cosine" | "euclidean" | "dotproduct"

Defined in: packages/agentos/src/rag/IVectorStore.ts:235

The similarity metric for the collection.