@eltjs/vectorizer 0.13.9 → 0.13.11
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/README.md +176 -25
- package/package.json +29 -9
package/README.md
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @eltjs/vectorizer
|
|
2
2
|
|
|
3
|
-
`Vectorizer` is one declaration that keeps the passage contract of [`@zukhruf/retrieval`](https://github.com/JanuaryLabs/zukhruf/tree/main/packages/retrieval) in step with what an elt pipeline loads: the passages of each source row with their metadata, the vector of each passage with the identity of its model, and a keyword index. The retrievers of `@zukhruf/retrieval` then search the rows by meaning and by words. pgai's `create_vectorizer` does the same job in Postgres.
|
|
3
|
+
`Vectorizer` is one declaration that keeps the passage contract of [`@zukhruf/retrieval`](https://github.com/JanuaryLabs/zukhruf/tree/main/packages/retrieval) in step with what an elt pipeline loads: the passages of each source row with their metadata, the vector of each passage with the identity of its model, and a keyword index. The retrievers of `@zukhruf/retrieval` then search the rows by meaning and by words. pgai's `create_vectorizer` does the same job in Postgres.
|
|
4
|
+
|
|
5
|
+
The words in these documents have one meaning each. See the glossary in [CONTEXT.md](./CONTEXT.md).
|
|
6
|
+
|
|
7
|
+
## Use it
|
|
4
8
|
|
|
5
9
|
```sh
|
|
6
10
|
npm install @eltjs/vectorizer @eltjs/elt @eltjs/elt-sqlite @zukhruf/retrieval
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Each subpath writes through its engine's elt destination: `/sqlite` through `@eltjs/elt-sqlite`, `/postgresql` through `@eltjs/elt-postgresql` and `postgres`, `/sqlserver` through `@eltjs/elt-sqlserver`. These are optional peer dependencies, so a host installs only the one that it uses.
|
|
14
|
+
|
|
15
|
+
`@eltjs/vectorizer/sqlite` writes the contract into a SQLite file, `@eltjs/vectorizer/postgresql` into a Postgres database ([Search in Postgres](#search-in-postgres)), and `@eltjs/vectorizer/sqlserver` into a SQL Server database ([Search in SQL Server](#search-in-sql-server)). The smallest program is in [Search the rows of a table](#search-the-rows-of-a-table), the next section.
|
|
10
16
|
|
|
11
17
|
## Search the rows of a table
|
|
12
18
|
|
|
@@ -611,6 +617,8 @@ fix-git:2 software-engineering 0.0159
|
|
|
611
617
|
npm install @eltjs/vectorizer @eltjs/elt @eltjs/elt-sqlserver @zukhruf/retrieval mssql
|
|
612
618
|
```
|
|
613
619
|
|
|
620
|
+
The program below does not define `LetterModel` and `tasks`, so it does not run as written. The recipe [Search the rows of a SQL Server table with Full-Text Search](./docs/recipes/search-the-rows-of-a-sql-server-table-with-full-text-search.md) gives the full program.
|
|
621
|
+
|
|
614
622
|
```ts
|
|
615
623
|
import { FusionRetriever } from '@zukhruf/retrieval';
|
|
616
624
|
import {
|
|
@@ -741,24 +749,24 @@ This program did not run when this section was written, so no output is pasted h
|
|
|
741
749
|
- A run ends only when the full-text index holds its passages: the keyword index is `current` only when SQL Server shows no population that runs and no change that waits. So a search after `run()` finds each passage.
|
|
742
750
|
- Ids and sources compare in binary, so the sources `a` and `A` are two source rows and give the passages `a:0` and `A:0`, also in a database whose collation ignores case.
|
|
743
751
|
- `indexing: { vectors: 'none' }` is the only declaration of the vectors index. A search compares every vector with `VECTOR_DISTANCE`. The DiskANN index of SQL Server 2025 waits for zukhruf #5475.
|
|
744
|
-
- A server with no Full-Text Search
|
|
752
|
+
- A server with no Full-Text Search makes the full-text catalog, which is only metadata, and refuses the full-text index with error 7609. The keyword index then drops the table that it made and fails with a `SqlServerSetupError`, of failure type `config`, so the run leaves no keywords table (`src/sqlserver.test.ts`, commit 0b726dd4, #5401). On Linux, install the package `mssql-server-fts`. Azure SQL Database has Full-Text Search.
|
|
745
753
|
- A passage id has at most 450 characters, the most that a full-text key of SQL Server holds. A source row whose passage ids would be longer is a rule failure of its own: its row of `docs_chunks` is `failed`, with an error that names the length and the limit, and `derived_status` counts it in `failed`. The other rows go on. Give the vectorizer a shorter source key.
|
|
746
754
|
|
|
747
755
|
## The relations
|
|
748
756
|
|
|
749
|
-
A vectorizer named `docs` refreshes these members, in this order, in the file of its source. Each is a derived dataset of elt-sqlite with its own row of `derived_status`.
|
|
757
|
+
A vectorizer named `docs` refreshes these members, in this order, where its source is: in the file of its source on SQLite, and in the database of its source on Postgres and SQL Server. Each is a derived dataset of the destination (elt-sqlite, elt-postgresql or elt-sqlserver) with its own row of `derived_status`. On Postgres and SQL Server, each relation that a reader reads is in `marts`, and the views read the raw tables in `_warehouse` (commit f845aef6).
|
|
750
758
|
|
|
751
|
-
| Relation | What it holds
|
|
752
|
-
| ---------------------- |
|
|
753
|
-
| `docs_text` | Only with `loading: { file }`: the text of each stored file, a computed dataset of `DocumentText`
|
|
754
|
-
| `docs_documents` | Only with `loading: { file }`: the text of the file of each source row, by the source key
|
|
755
|
-
| `docs_chunks` | The parts of the text of each source row, a computed dataset; its parts are in `docs_chunks_parts`
|
|
756
|
-
| `docs_keywords` | The id, source, seq and text of each passage.
|
|
757
|
-
| `docs_passages` | The passages: `
|
|
758
|
-
| `docs_chunk_texts` | The text of each part, by its part hash
|
|
759
|
-
| `docs_chunk_vectors` | The vector of each part text, a computed dataset of `Embedding`
|
|
760
|
-
| `docs_passage_vectors` | The vectors: `id`, `vector` and `model`, the identity of the model, for example `openai/text-embedding-3-small (1536 dimensions)`
|
|
761
|
-
| `docs_status` | One row: `state`, `as_of`, `pending_sources` and `pending_vectors`
|
|
759
|
+
| Relation | What it holds |
|
|
760
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
761
|
+
| `docs_text` | Only with `loading: { file }`: the text of each stored file, a computed dataset of `DocumentText` |
|
|
762
|
+
| `docs_documents` | Only with `loading: { file }`: the text of the file of each source row, by the source key |
|
|
763
|
+
| `docs_chunks` | The parts of the text of each source row, a computed dataset; its parts are in `docs_chunks_parts` |
|
|
764
|
+
| `docs_keywords` | The id, source, seq and text of each passage. On SQLite, the FTS5 table `docs_passages_fts` indexes the text. On Postgres, it is the table `_warehouse.raw_docs_keywords`, whose `keywords` column a GIN index indexes. On SQL Server, it is the base table `marts.docs_keywords`, which a full-text index indexes |
|
|
765
|
+
| `docs_passages` | The passages: `id`, `source`, `seq`, `start`, `end`, `text` and the metadata columns. SQLite also gives `rowid`, the rowid of the passage in the keyword index, and Postgres also gives `keywords` |
|
|
766
|
+
| `docs_chunk_texts` | The text of each part, by its part hash |
|
|
767
|
+
| `docs_chunk_vectors` | The vector of each part text, a computed dataset of `Embedding` |
|
|
768
|
+
| `docs_passage_vectors` | The vectors: `id`, `vector` and `model`, the identity of the model, for example `openai/text-embedding-3-small (1536 dimensions)` |
|
|
769
|
+
| `docs_status` | One row: `state`, `as_of`, `pending_sources` and `pending_vectors` |
|
|
762
770
|
|
|
763
771
|
- The id of a passage is `<source>:<seq>`.
|
|
764
772
|
- The passages of a source row tile its text: `start` and `end` count code points, and `ContextWindow` merges passages by them with no gap.
|
|
@@ -776,28 +784,171 @@ When `key` is a list of two or more columns, the source of a passage is the JSON
|
|
|
776
784
|
|
|
777
785
|
## A new model
|
|
778
786
|
|
|
779
|
-
When the model
|
|
787
|
+
When the model changes and its `dimensions` stay the same, the next refresh makes each vector again, in place. On SQLite, a change of `dimensions` also makes each vector again in place, because the vector column is a `BLOB`. On Postgres and SQL Server, a change of `dimensions` changes the declaration of the vector column, `vector(n)` or `VECTOR(n)`, so the next refresh makes the table of the vectors again, and then makes each vector again. During a refresh in place, `docs_status` has the state `refreshing` and counts the texts that wait in `pending_vectors`. A retriever with the new model finds only the passages that it already embedded, and a retriever with the old model finds only the others. When the refresh ends, each vector has the new model.
|
|
780
788
|
|
|
781
789
|
## Rules and failures
|
|
782
790
|
|
|
783
|
-
- The constructor refuses, with a `TypeError` that names it, a metadata column that has the name of a column of the passages
|
|
791
|
+
- The constructor refuses, with a `TypeError` that names it, a metadata column that has the name of a column of the passages, in any ASCII case, and a metadata column or a key column that is listed twice. The names of the passage columns are `rowid`, `id`, `source`, `seq`, `start`, `end` and `text` on SQLite; `id`, `source`, `seq`, `start`, `end`, `text` and `keywords` on Postgres; and `id`, `source`, `seq`, `start`, `end` and `text` on SQL Server, so a metadata column `rowid` is allowed there (`src/sqlserver.test.ts`).
|
|
792
|
+
- On SQL Server, the constructor refuses with a `RangeError` a `keywords: { language }` that is not an LCID, an integer of 0 or more, such as `1033.5`, `-1` or `NaN` (`src/sqlserver.test.ts`).
|
|
784
793
|
- Before it reads, the pipeline refuses a vectorizer whose table no copy loads into its file, and a key, metadata or loading column that the stream or the target does not declare. The run rejects with a `TypeError`.
|
|
785
794
|
- The name of the vectorizer and the name of each relation count in the check of distinct names of the pipeline.
|
|
786
795
|
- A vectorizer fails as one dataset of the pipeline ([elt ADR 0034](../elt/docs/adr/0034-a-composite-dataset-refreshes-its-members-in-order-as-one-dataset.md)): the first member that fails stops the members after it, the copies and the other datasets go on, and the refresh after the next pass tries it again. A run rejects with the `DerivedDatasetError` of the vectorizer, whose `cause` is the `DerivedDatasetError` of the member. `docs_status` then has the state `failed`.
|
|
787
796
|
|
|
788
|
-
##
|
|
797
|
+
## Errors
|
|
798
|
+
|
|
799
|
+
| Error | When |
|
|
800
|
+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
801
|
+
| `TypeError` | The constructor gets a metadata column with the name of a passage column, or a key or metadata column listed twice. Or the run, before it reads, finds a table that no copy loads, a key, metadata or loading column that the stream or the target does not declare, or a copy that makes the table of the keyword index |
|
|
802
|
+
| `RangeError` | The constructor of `@eltjs/vectorizer/sqlserver` gets a `keywords: { language }` that is not an integer of 0 or more |
|
|
803
|
+
| `DerivedDatasetError` of elt | A member fails in a refresh. The run rejects with the `DerivedDatasetError` of the vectorizer, whose `cause` is the `DerivedDatasetError` of the member, and `docs_status` has the state `failed` |
|
|
804
|
+
| `SqlServerSetupError` of elt-sqlserver | The SQL Server has no Full-Text Search. It is the `cause` of the `DerivedDatasetError` of the member `docs_keywords`, and its failure type is `config` (`src/sqlserver.test.ts`) |
|
|
789
805
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
|
793
|
-
|
|
|
794
|
-
| LlamaIndex `IngestionPipeline`
|
|
806
|
+
## The same concepts in other systems
|
|
807
|
+
|
|
808
|
+
| Concept | Other systems |
|
|
809
|
+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
810
|
+
| `Vectorizer`, one declaration that keeps the vectors in step with the rows | pgai [`ai.create_vectorizer`](https://github.com/timescale/pgai/blob/47d74affd8a16d0b7f11c8f5bd6e35f7cd43abc1/docs/vectorizer/api-reference.md#L107-L117), one call that keeps the embeddings of a Postgres table in step with its rows. LlamaIndex [`IngestionPipeline`](https://github.com/run-llama/llama_index/blob/99d7433f6f71888951379ccca9294e272442c832/llama-index-core/llama_index/core/ingestion/pipeline.py#L262), the steps that make nodes and their embeddings from documents, with the strategy [`UPSERTS`](https://github.com/run-llama/llama_index/blob/99d7433f6f71888951379ccca9294e272442c832/llama-index-core/llama_index/core/ingestion/pipeline.py#L240-L259) to replace a changed document |
|
|
811
|
+
| `loading: { columns }` | pgai [`ai.loading_column`](https://github.com/timescale/pgai/blob/47d74affd8a16d0b7f11c8f5bd6e35f7cd43abc1/docs/vectorizer/api-reference.md#L313). The `text_fields` of an Airbyte vector destination ([`ProcessingConfigModel`](https://github.com/airbytehq/airbyte-python-cdk/blob/9b547097da5e8c1eb3fefee4aceafa98cd7f2d39/airbyte_cdk/destinations/vector_db_based/config.py#L105-L111)), which it chunks and embeds on load |
|
|
812
|
+
| `loading: { file }` | pgai [`ai.loading_uri`](https://github.com/timescale/pgai/blob/47d74affd8a16d0b7f11c8f5bd6e35f7cd43abc1/docs/vectorizer/api-reference.md#L339) |
|
|
813
|
+
| `metadata` | The `metadata_fields` of an Airbyte vector destination ([`ProcessingConfigModel`](https://github.com/airbytehq/airbyte-python-cdk/blob/9b547097da5e8c1eb3fefee4aceafa98cd7f2d39/airbyte_cdk/destinations/vector_db_based/config.py#L112-L118)) |
|
|
814
|
+
| `indexing: { vectors }` | pgai [`ai.indexing_hnsw`](https://github.com/timescale/pgai/blob/47d74affd8a16d0b7f11c8f5bd6e35f7cd43abc1/docs/vectorizer/api-reference.md#L1244) and [`ai.indexing_none`](https://github.com/timescale/pgai/blob/47d74affd8a16d0b7f11c8f5bd6e35f7cd43abc1/docs/vectorizer/api-reference.md#L1184) |
|
|
815
|
+
|
|
816
|
+
## API
|
|
817
|
+
|
|
818
|
+
```ts
|
|
819
|
+
// @eltjs/vectorizer/sqlite, /postgresql and /sqlserver each export these four types.
|
|
820
|
+
type SourceKey = string | readonly [string, string, ...string[]];
|
|
821
|
+
|
|
822
|
+
type Loading =
|
|
823
|
+
| { readonly columns: readonly [string, ...string[]] }
|
|
824
|
+
| {
|
|
825
|
+
readonly file: string;
|
|
826
|
+
readonly files: FileStorage; // of @eltjs/elt
|
|
827
|
+
readonly parser: () => DocumentParser; // of @eltjs/elt
|
|
828
|
+
};
|
|
795
829
|
|
|
796
|
-
|
|
830
|
+
type ChunkingOptions =
|
|
831
|
+
| {
|
|
832
|
+
readonly tokenizer: Tokenizer; // of @eltjs/chunking
|
|
833
|
+
readonly maxTokens: number;
|
|
834
|
+
readonly overlapTokens: number;
|
|
835
|
+
}
|
|
836
|
+
| 'none';
|
|
837
|
+
|
|
838
|
+
type EmbeddingOptions = {
|
|
839
|
+
readonly model: EmbeddingModel; // of ai
|
|
840
|
+
readonly dimensions: number;
|
|
841
|
+
readonly clock: Pick<PipelineClock, 'setTimeout' | 'clearTimeout'>;
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
// @eltjs/vectorizer/sqlite
|
|
845
|
+
type SqliteContract = {
|
|
846
|
+
readonly passages: string;
|
|
847
|
+
readonly vectors: string;
|
|
848
|
+
readonly index: string;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
class Vectorizer extends CompositeDataset<SQLiteTable> {
|
|
852
|
+
constructor(
|
|
853
|
+
options: (
|
|
854
|
+
| { readonly into: SQLiteDestination; readonly from: SQLiteTable }
|
|
855
|
+
| { readonly from: View }
|
|
856
|
+
) & {
|
|
857
|
+
readonly name: string; // the start of the name of each relation
|
|
858
|
+
readonly description: string;
|
|
859
|
+
readonly key: SourceKey;
|
|
860
|
+
readonly loading: Loading;
|
|
861
|
+
readonly chunking: ChunkingOptions;
|
|
862
|
+
readonly embedding: EmbeddingOptions;
|
|
863
|
+
readonly metadata?: readonly string[]; // none when absent
|
|
864
|
+
},
|
|
865
|
+
);
|
|
866
|
+
readonly name: string;
|
|
867
|
+
readonly contract: SqliteContract;
|
|
868
|
+
readonly into: SQLiteDestination;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// @eltjs/vectorizer/postgresql
|
|
872
|
+
type PostgresContract = {
|
|
873
|
+
readonly schema: string; // 'marts'
|
|
874
|
+
readonly passages: string;
|
|
875
|
+
readonly vectors: string;
|
|
876
|
+
readonly index: { readonly column: string; readonly configuration: string };
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
class Vectorizer extends CompositeDataset<PostgresTable> {
|
|
880
|
+
constructor(
|
|
881
|
+
options: (
|
|
882
|
+
| { readonly into: PostgresDestination; readonly from: PostgresTable }
|
|
883
|
+
| { readonly from: View }
|
|
884
|
+
) & {
|
|
885
|
+
readonly name: string; // the start of the name of each relation
|
|
886
|
+
readonly description: string;
|
|
887
|
+
readonly key: SourceKey;
|
|
888
|
+
readonly loading: Loading;
|
|
889
|
+
readonly chunking: ChunkingOptions;
|
|
890
|
+
readonly embedding: EmbeddingOptions;
|
|
891
|
+
readonly metadata?: readonly string[]; // none when absent
|
|
892
|
+
readonly keywords?: { readonly configuration?: string }; // 'english' when absent
|
|
893
|
+
readonly indexing?: { readonly vectors: Hnsw | 'none' }; // hnsw() when absent
|
|
894
|
+
},
|
|
895
|
+
);
|
|
896
|
+
readonly name: string;
|
|
897
|
+
readonly contract: PostgresContract;
|
|
898
|
+
readonly into: PostgresDestination;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
// @eltjs/vectorizer/sqlserver
|
|
902
|
+
type SqlServerContract = {
|
|
903
|
+
readonly schema: string; // 'marts'
|
|
904
|
+
readonly passages: string;
|
|
905
|
+
readonly vectors: string;
|
|
906
|
+
readonly index: { readonly table: string };
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
class Vectorizer extends CompositeDataset<SqlServerTable> {
|
|
910
|
+
constructor(
|
|
911
|
+
options: (
|
|
912
|
+
| { readonly into: SqlServerDestination; readonly from: SqlServerTable }
|
|
913
|
+
| { readonly from: View }
|
|
914
|
+
) & {
|
|
915
|
+
readonly name: string; // the start of the name of each relation
|
|
916
|
+
readonly description: string;
|
|
917
|
+
readonly key: SourceKey;
|
|
918
|
+
readonly loading: Loading;
|
|
919
|
+
readonly chunking: ChunkingOptions;
|
|
920
|
+
readonly embedding: EmbeddingOptions;
|
|
921
|
+
readonly metadata?: readonly string[]; // none when absent
|
|
922
|
+
readonly keywords?: { readonly language?: number }; // an LCID, 1033 when absent
|
|
923
|
+
readonly indexing?: { readonly vectors: 'none' };
|
|
924
|
+
},
|
|
925
|
+
);
|
|
926
|
+
readonly name: string;
|
|
927
|
+
readonly contract: SqlServerContract;
|
|
928
|
+
readonly into: SqlServerDestination;
|
|
929
|
+
}
|
|
930
|
+
```
|
|
931
|
+
|
|
932
|
+
## Documentation
|
|
933
|
+
|
|
934
|
+
**Concepts**
|
|
935
|
+
|
|
936
|
+
- [How the vectorizer builds on Chunking, the Embedding rule and an AI SDK embedding model](./docs/concepts/how-the-vectorizer-builds-on-chunking-and-embedding.md)
|
|
937
|
+
|
|
938
|
+
**Recipes**
|
|
939
|
+
|
|
940
|
+
- [Search the texts that a host holds by meaning and by words](./docs/recipes/search-the-texts-that-a-host-holds-by-meaning-and-by-words.md)
|
|
941
|
+
- [Embed the passages again with a new model and read the status view](./docs/recipes/embed-the-passages-again-with-a-new-model.md)
|
|
942
|
+
- [Search the rows of a Postgres table with pgvector and a reader that reads only marts](./docs/recipes/search-the-rows-of-a-postgres-table-with-pgvector.md)
|
|
943
|
+
- [Search the rows of a SQL Server table with Full-Text Search](./docs/recipes/search-the-rows-of-a-sql-server-table-with-full-text-search.md)
|
|
944
|
+
|
|
945
|
+
**Decisions**
|
|
797
946
|
|
|
798
947
|
- [ADR 0001](./docs/adr/0001-the-vectorizer-writes-the-passage-contract-of-zukhruf-retrieval-one-subpath-per-engine.md): the vectorizer writes the passage contract of `@zukhruf/retrieval`, one subpath per engine.
|
|
799
948
|
- [ADR 0002](./docs/adr/0002-the-keyword-index-is-a-member-that-keeps-a-keywords-table-and-its-full-text-index-in-step.md): the keyword index is a member that keeps a keywords table and its full-text index in step.
|
|
800
949
|
|
|
950
|
+
The copies of code that this package keeps are in [docs/copied-code.md](./docs/copied-code.md).
|
|
951
|
+
|
|
801
952
|
## Development
|
|
802
953
|
|
|
803
954
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eltjs/vectorizer",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.11",
|
|
4
4
|
"description": "One declaration that keeps the passage contract of @zukhruf/retrieval in step with an elt pipeline: passages with metadata, their vectors with the model identity, and a keyword index.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -50,20 +50,39 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@eltjs/chunking": "^0.13.
|
|
54
|
-
"@eltjs/elt": "^0.13.
|
|
55
|
-
"@eltjs/
|
|
56
|
-
"@eltjs/elt-sqlite": "^0.13.9",
|
|
57
|
-
"@eltjs/elt-sqlserver": "^0.13.9",
|
|
58
|
-
"@eltjs/embedding": "^0.13.9",
|
|
53
|
+
"@eltjs/chunking": "^0.13.11",
|
|
54
|
+
"@eltjs/elt": "^0.13.11",
|
|
55
|
+
"@eltjs/embedding": "^0.13.11",
|
|
59
56
|
"@zukhruf/async": "^0.8.109",
|
|
60
57
|
"@zukhruf/sqlite-drift": "^0.8.109",
|
|
61
58
|
"@zukhruf/sqlite-transaction": "^0.8.109",
|
|
62
|
-
"ai": "^7.0.165"
|
|
59
|
+
"ai": "^7.0.165"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@eltjs/elt-postgresql": "^0.13.11",
|
|
63
|
+
"@eltjs/elt-sqlite": "^0.13.11",
|
|
64
|
+
"@eltjs/elt-sqlserver": "^0.13.11",
|
|
63
65
|
"postgres": "^3.4.9"
|
|
64
66
|
},
|
|
67
|
+
"peerDependenciesMeta": {
|
|
68
|
+
"@eltjs/elt-postgresql": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@eltjs/elt-sqlite": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"@eltjs/elt-sqlserver": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"postgres": {
|
|
78
|
+
"optional": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
65
81
|
"devDependencies": {
|
|
66
82
|
"@ai-sdk/provider": "^4.0.37",
|
|
83
|
+
"@eltjs/elt-postgresql": "^0.13.11",
|
|
84
|
+
"@eltjs/elt-sqlite": "^0.13.11",
|
|
85
|
+
"@eltjs/elt-sqlserver": "^0.13.11",
|
|
67
86
|
"@types/mssql": "^12.3.0",
|
|
68
87
|
"@zukhruf/fs": "^0.8.109",
|
|
69
88
|
"@zukhruf/retrieval": "^0.8.109",
|
|
@@ -71,6 +90,7 @@
|
|
|
71
90
|
"@zukhruf/testing": "^0.8.109",
|
|
72
91
|
"@zukhruf/vectors": "^0.8.109",
|
|
73
92
|
"gpt-tokenizer": "^4.1.2",
|
|
74
|
-
"mssql": "^12.7.4"
|
|
93
|
+
"mssql": "^12.7.4",
|
|
94
|
+
"postgres": "^3.4.9"
|
|
75
95
|
}
|
|
76
96
|
}
|