@delali/narsil 0.2.1 → 0.2.2
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/dist/{config-CAjTHzkH.d.ts → config-DXypXAfN.d.ts} +1 -1
- package/dist/distribution.d.ts +2 -2
- package/dist/distribution.mjs +1 -1
- package/dist/{engine-CCrlfLyq.d.ts → engine-CO9Wnfie.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/{search-CgQQIciB.d.ts → search-DLBtiPdQ.d.ts} +4 -3
- package/dist/server.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter } from './adapters-CVqI5NBt.js';
|
|
2
|
-
import { Q as QueryParams, q as QueryResult } from './search-
|
|
2
|
+
import { Q as QueryParams, q as QueryResult } from './search-DLBtiPdQ.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument } from './schema-CE6S_aAr.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NarsilConfig } from './config-
|
|
2
|
-
import { B as BatchResult, Q as QueryParams, q as QueryResult } from './search-
|
|
1
|
+
import { N as NarsilConfig } from './config-DXypXAfN.js';
|
|
2
|
+
import { B as BatchResult, Q as QueryParams, q as QueryResult } from './search-DLBtiPdQ.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument } from './schema-CE6S_aAr.js';
|
|
4
4
|
import { A as AllocationTable, N as NodeRole, C as ClusterCoordinator, a as NodeCapacity } from './types-BV3nAKTL.js';
|
|
5
5
|
export { b as AllocationConstraints, c as AllocationEvent, d as NodeEvent, e as NodeRegistration, P as PartitionAssignment, f as PartitionState, S as SchemaEvent } from './types-BV3nAKTL.js';
|
package/dist/distribution.mjs
CHANGED
|
@@ -6745,7 +6745,7 @@ function convertLocalVectorToWire(vector) {
|
|
|
6745
6745
|
}
|
|
6746
6746
|
return {
|
|
6747
6747
|
field: vector.field,
|
|
6748
|
-
value: vector.value
|
|
6748
|
+
value: vector.value === void 0 ? null : Array.from(vector.value),
|
|
6749
6749
|
text: vector.text ?? null,
|
|
6750
6750
|
similarity: vector.similarity ?? null
|
|
6751
6751
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter } from './adapters-CVqI5NBt.js';
|
|
2
|
-
import { I as IndexInfo, m as IndexStats, P as PartitionStatsResult, B as BatchResult, Q as QueryParams, q as QueryResult, n as PreflightResult, t as SuggestParams, u as SuggestResult, M as MemoryStats, V as VectorMaintenanceResult } from './search-
|
|
2
|
+
import { I as IndexInfo, m as IndexStats, P as PartitionStatsResult, B as BatchResult, Q as QueryParams, q as QueryResult, n as PreflightResult, t as SuggestParams, u as SuggestResult, M as MemoryStats, V as VectorMaintenanceResult } from './search-DLBtiPdQ.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument, a as InsertOptions, P as PartitionConfig } from './schema-CE6S_aAr.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { S as StopWordOverride, C as CustomTokenizer } from './schema-CE6S_aAr.j
|
|
|
2
2
|
export { A as AnyDocument, B as BM25Params, E as EmbeddingFieldConfig, F as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, b as SchemaDefinition, c as ScoringMode, V as VectorIndexConfig, d as VectorQuantizationMode } from './schema-CE6S_aAr.js';
|
|
3
3
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
4
4
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
5
|
-
export { A as ArrayFilter, B as BatchResult, C as ComparisonFilter, E as ErrorCode, a as ErrorCodes, F as FacetConfig, b as FacetResult, c as FieldFilter, d as FilterExpression, G as GeoFilter, e as GeoPolygonFilter, f as GeoRadiusFilter, g as GroupConfig, h as GroupReducer, i as GroupResult, H as HighlightConfig, j as HighlightMatch, k as Hit, l as HybridConfig, I as IndexInfo, m as IndexStats, M as MemoryStats, N as NarsilError, P as PartitionStatsResult, n as PreflightResult, o as PresenceFilter, p as ProcessMemoryReport, Q as QueryParams, q as QueryResult, S as ScoreComponents, r as SearchMode, s as StringFilter, t as SuggestParams, u as SuggestResult, T as TermMatchPolicy, V as VectorMaintenanceResult, v as VectorQueryConfig } from './search-
|
|
6
|
-
import { N as NarsilConfig } from './config-
|
|
7
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as InsertContext, b as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, c as StaleAnalysis, U as UpdateContext, W as WorkerConfig, d as WorkerContext } from './config-
|
|
8
|
-
import { N as Narsil } from './engine-
|
|
9
|
-
export { a as NarsilEventMap } from './engine-
|
|
5
|
+
export { A as ArrayFilter, B as BatchResult, C as ComparisonFilter, E as ErrorCode, a as ErrorCodes, F as FacetConfig, b as FacetResult, c as FieldFilter, d as FilterExpression, G as GeoFilter, e as GeoPolygonFilter, f as GeoRadiusFilter, g as GroupConfig, h as GroupReducer, i as GroupResult, H as HighlightConfig, j as HighlightMatch, k as Hit, l as HybridConfig, I as IndexInfo, m as IndexStats, M as MemoryStats, N as NarsilError, P as PartitionStatsResult, n as PreflightResult, o as PresenceFilter, p as ProcessMemoryReport, Q as QueryParams, q as QueryResult, S as ScoreComponents, r as SearchMode, s as StringFilter, t as SuggestParams, u as SuggestResult, T as TermMatchPolicy, V as VectorMaintenanceResult, v as VectorQueryConfig } from './search-DLBtiPdQ.js';
|
|
6
|
+
import { N as NarsilConfig } from './config-DXypXAfN.js';
|
|
7
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as InsertContext, b as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, c as StaleAnalysis, U as UpdateContext, W as WorkerConfig, d as WorkerContext } from './config-DXypXAfN.js';
|
|
8
|
+
import { N as Narsil } from './engine-CO9Wnfie.js';
|
|
9
|
+
export { a as NarsilEventMap } from './engine-CO9Wnfie.js';
|
|
10
10
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, P as PartitionStatistics, b as PersistenceAdapter } from './adapters-CVqI5NBt.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -652,10 +652,11 @@ interface VectorQueryConfig {
|
|
|
652
652
|
*/
|
|
653
653
|
field: string;
|
|
654
654
|
/**
|
|
655
|
-
* Raw query vector
|
|
656
|
-
* the
|
|
655
|
+
* Raw query vector, given as a number array or a `Float32Array`. Length
|
|
656
|
+
* must match the indexed field's dimension or the search rejects the
|
|
657
|
+
* request with `VECTOR_DIMENSION_MISMATCH`.
|
|
657
658
|
*/
|
|
658
|
-
value?: number[];
|
|
659
|
+
value?: number[] | Float32Array;
|
|
659
660
|
/**
|
|
660
661
|
* Text to embed at query time using the index or instance embedding
|
|
661
662
|
* adapter. Mutually exclusive with `value`; requires a configured adapter.
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as Narsil } from './engine-
|
|
1
|
+
import { N as Narsil } from './engine-CO9Wnfie.js';
|
|
2
2
|
import { E as EmbeddingAdapter } from './adapters-CVqI5NBt.js';
|
|
3
|
-
import './search-
|
|
3
|
+
import './search-DLBtiPdQ.js';
|
|
4
4
|
import './schema-CE6S_aAr.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/package.json
CHANGED