@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strav/rag",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Vector retrieval framework for RAG in the Strav framework",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import type { Command } from 'commander'
2
2
  import chalk from 'chalk'
3
- import { bootstrap, shutdown } from '@stravigor/cli'
4
- import { BaseModel } from '@stravigor/database'
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 '@stravigor/cli'
4
- import { BaseModel } from '@stravigor/database'
5
- import { BrainManager } from '@stravigor/brain'
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 '@stravigor/database'
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
@@ -1,4 +1,4 @@
1
- import { StravError } from '@stravigor/kernel'
1
+ import { StravError } from '@strav/kernel'
2
2
 
3
3
  export class RagError extends StravError {}
4
4
 
package/src/helpers.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { brain } from '@stravigor/brain'
1
+ import { brain } from '@strav/brain'
2
2
  import RagManager from './rag_manager.ts'
3
3
  import type { VectorStore } from './vector_store.ts'
4
4
  import type {
@@ -1,4 +1,4 @@
1
- import { inject, Configuration, ConfigurationError } from '@stravigor/kernel'
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'
@@ -1,5 +1,5 @@
1
- import { ServiceProvider } from '@stravigor/kernel'
2
- import type { Application } from '@stravigor/kernel'
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 {
@@ -1,7 +1,7 @@
1
- import type { BaseModel } from '@stravigor/database'
2
- import type { NormalizeConstructor } from '@stravigor/kernel'
3
- import { Emitter } from '@stravigor/kernel'
4
- import { brain } from '@stravigor/brain'
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'
@@ -1,4 +1,4 @@
1
- import { env } from '@stravigor/kernel'
1
+ import { env } from '@strav/kernel'
2
2
 
3
3
  export default {
4
4
  default: env('RAG_DRIVER', 'pgvector'),