@strav/rag 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/rag_flush.ts +2 -2
- package/src/commands/rag_ingest.ts +3 -3
- package/src/drivers/pgvector_driver.ts +1 -1
- package/src/errors.ts +1 -1
- package/src/helpers.ts +1 -1
- package/src/rag_manager.ts +1 -1
- package/src/rag_provider.ts +2 -2
- package/src/retrievable.ts +4 -4
- package/stubs/config/rag.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Command } from 'commander'
|
|
2
2
|
import chalk from 'chalk'
|
|
3
|
-
import { bootstrap, shutdown } from '@
|
|
4
|
-
import { BaseModel } from '@
|
|
3
|
+
import { bootstrap, shutdown } from '@strav/cli'
|
|
4
|
+
import { BaseModel } from '@strav/database'
|
|
5
5
|
import RagManager from '../rag_manager.ts'
|
|
6
6
|
|
|
7
7
|
export function register(program: Command): void {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Command } from 'commander'
|
|
2
2
|
import chalk from 'chalk'
|
|
3
|
-
import { bootstrap, shutdown } from '@
|
|
4
|
-
import { BaseModel } from '@
|
|
5
|
-
import { BrainManager } from '@
|
|
3
|
+
import { bootstrap, shutdown } from '@strav/cli'
|
|
4
|
+
import { BaseModel } from '@strav/database'
|
|
5
|
+
import { BrainManager } from '@strav/brain'
|
|
6
6
|
import RagManager from '../rag_manager.ts'
|
|
7
7
|
|
|
8
8
|
export function register(program: Command): void {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Database } from '@
|
|
1
|
+
import { Database } from '@strav/database'
|
|
2
2
|
import type { VectorStore } from '../vector_store.ts'
|
|
3
3
|
import type { VectorDocument, QueryOptions, QueryResult, VectorMatch, StoreConfig } from '../types.ts'
|
|
4
4
|
import { VectorQueryError } from '../errors.ts'
|
package/src/errors.ts
CHANGED
package/src/helpers.ts
CHANGED
package/src/rag_manager.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, Configuration, ConfigurationError } from '@
|
|
1
|
+
import { inject, Configuration, ConfigurationError } from '@strav/kernel'
|
|
2
2
|
import type { VectorStore } from './vector_store.ts'
|
|
3
3
|
import type { RagConfig, StoreConfig, EmbeddingConfig, ChunkingConfig } from './types.ts'
|
|
4
4
|
import { NullDriver } from './drivers/null_driver.ts'
|
package/src/rag_provider.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServiceProvider } from '@
|
|
2
|
-
import type { Application } from '@
|
|
1
|
+
import { ServiceProvider } from '@strav/kernel'
|
|
2
|
+
import type { Application } from '@strav/kernel'
|
|
3
3
|
import RagManager from './rag_manager.ts'
|
|
4
4
|
|
|
5
5
|
export default class RagProvider extends ServiceProvider {
|
package/src/retrievable.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseModel } from '@
|
|
2
|
-
import type { NormalizeConstructor } from '@
|
|
3
|
-
import { Emitter } from '@
|
|
4
|
-
import { brain } from '@
|
|
1
|
+
import type { BaseModel } from '@strav/database'
|
|
2
|
+
import type { NormalizeConstructor } from '@strav/kernel'
|
|
3
|
+
import { Emitter } from '@strav/kernel'
|
|
4
|
+
import { brain } from '@strav/brain'
|
|
5
5
|
import RagManager from './rag_manager.ts'
|
|
6
6
|
import { createChunker } from './chunking/chunker.ts'
|
|
7
7
|
import type { VectorDocument, RetrieveOptions, RetrieveResult } from './types.ts'
|
package/stubs/config/rag.ts
CHANGED