Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 38x 38x 35x 35x 3x 3x | /**
* Base class for every error thrown by `@ydbjs/langchain`. Catch this to
* separate store errors from framework errors at the LangChain layer.
*/
export class YDBVectorStoreError extends Error {
constructor(msg: string) {
super(msg)
this.name = 'YDBVectorStoreError'
}
}
/**
* Constructor-time configuration is invalid (bad connection params, unknown
* strategy, out-of-range tuning options, misuse of static helpers, …).
*/
export class YDBVectorStoreConfigError extends YDBVectorStoreError {
constructor(msg: string) {
super(msg)
this.name = 'YDBVectorStoreConfigError'
}
}
/**
* Call-time argument is invalid (vector/document count mismatch, negative `k`, …).
*/
export class YDBVectorStoreArgumentError extends YDBVectorStoreError {
constructor(msg: string) {
super(msg)
this.name = 'YDBVectorStoreArgumentError'
}
}
/**
* Operation cannot run in the current store state (filter combined with index,
* `createVectorIndex` without `indexEnabled` / `indexVectorDimension`, …).
*/
export class YDBVectorStoreOperationError extends YDBVectorStoreError {
constructor(msg: string) {
super(msg)
this.name = 'YDBVectorStoreOperationError'
}
}
|