@becomposable/common
Advanced tools
Comparing version 0.38.2 to 0.38.3
@@ -1,3 +0,3 @@ | ||
import { FacetSpec } from "./facets.js"; | ||
import { InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, SimpleSearchQuery } from "./query.js"; | ||
import { FacetSpec } from './facets.js'; | ||
import { InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, SimpleSearchQuery, VectorSearchQuery } from './query.js'; | ||
export interface SearchPayload { | ||
@@ -29,2 +29,3 @@ query?: SimpleSearchQuery; | ||
query?: ObjectSearchQuery; | ||
vector?: VectorSearchQuery; | ||
} | ||
@@ -31,0 +32,0 @@ export interface ComputePromptFacetPayload extends ComputeFacetPayload { |
@@ -1,3 +0,3 @@ | ||
import { ExecutionRunStatus } from "./interaction.js"; | ||
import { SupportedEmbeddingTypes } from "./project.js"; | ||
import { ExecutionRunStatus } from './interaction.js'; | ||
import { SupportedEmbeddingTypes } from './project.js'; | ||
export interface RunListingQueryOptions { | ||
@@ -20,2 +20,10 @@ project?: string; | ||
} | ||
export interface VectorSearchQuery { | ||
objectId?: string; | ||
values?: number[]; | ||
text?: string; | ||
image?: string; | ||
threshold?: number; | ||
type: SupportedEmbeddingTypes; | ||
} | ||
export interface SimpleSearchQuery { | ||
@@ -43,2 +51,5 @@ name?: string; | ||
} | ||
export interface ComplexSearchQuery extends ObjectSearchQuery { | ||
vector?: VectorSearchQuery; | ||
} | ||
//# sourceMappingURL=query.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { SearchPayload } from "../payload.js"; | ||
import { SupportedEmbeddingTypes } from "../project.js"; | ||
import { ObjectSearchQuery } from "../query.js"; | ||
import { BaseObject } from "./common.js"; | ||
import { RenditionProperties } from "./index.js"; | ||
import { SearchPayload } from '../payload.js'; | ||
import { SupportedEmbeddingTypes } from '../project.js'; | ||
import { ComplexSearchQuery } from '../query.js'; | ||
import { BaseObject } from './common.js'; | ||
import { RenditionProperties } from './index.js'; | ||
export declare enum ContentObjectStatus { | ||
@@ -62,13 +62,2 @@ created = "created", | ||
} | ||
export interface ComplexSearchQuery extends ObjectSearchQuery { | ||
vector?: VectorSearchQuery; | ||
} | ||
export interface VectorSearchQuery { | ||
objectId?: string; | ||
values?: number[]; | ||
text?: string; | ||
image?: string; | ||
threshold?: number; | ||
type: SupportedEmbeddingTypes; | ||
} | ||
export interface ComplexSearchPayload extends Omit<SearchPayload, 'query'> { | ||
@@ -75,0 +64,0 @@ query?: ComplexSearchQuery; |
{ | ||
"name": "@becomposable/common", | ||
"version": "0.38.2", | ||
"version": "0.38.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "types": "./lib/types/index.d.ts", |
@@ -1,3 +0,3 @@ | ||
import { FacetSpec } from "./facets.js"; | ||
import { InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, SimpleSearchQuery } from "./query.js"; | ||
import { FacetSpec } from './facets.js'; | ||
import { InteractionSearchQuery, ObjectSearchQuery, ObjectTypeSearchQuery, PromptSearchQuery, SimpleSearchQuery, VectorSearchQuery } from './query.js'; | ||
@@ -37,2 +37,3 @@ export interface SearchPayload { | ||
query?: ObjectSearchQuery; | ||
vector?: VectorSearchQuery; | ||
} | ||
@@ -39,0 +40,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { ExecutionRunStatus } from "./interaction.js"; | ||
import { SupportedEmbeddingTypes } from "./project.js"; | ||
import { ExecutionRunStatus } from './interaction.js'; | ||
import { SupportedEmbeddingTypes } from './project.js'; | ||
@@ -23,2 +23,11 @@ export interface RunListingQueryOptions { | ||
export interface VectorSearchQuery { | ||
objectId?: string; | ||
values?: number[]; | ||
text?: string; | ||
image?: string; | ||
threshold?: number; | ||
type: SupportedEmbeddingTypes | ||
} | ||
export interface SimpleSearchQuery { | ||
@@ -49,2 +58,6 @@ name?: string; | ||
version?: number; | ||
} | ||
export interface ComplexSearchQuery extends ObjectSearchQuery { | ||
vector?: VectorSearchQuery; | ||
} |
@@ -1,6 +0,6 @@ | ||
import { SearchPayload } from "../payload.js"; | ||
import { SupportedEmbeddingTypes } from "../project.js"; | ||
import { ObjectSearchQuery } from "../query.js"; | ||
import { BaseObject } from "./common.js"; | ||
import { RenditionProperties } from "./index.js"; | ||
import { SearchPayload } from '../payload.js'; | ||
import { SupportedEmbeddingTypes } from '../project.js'; | ||
import { ComplexSearchQuery } from '../query.js'; | ||
import { BaseObject } from './common.js'; | ||
import { RenditionProperties } from './index.js'; | ||
@@ -79,15 +79,2 @@ export enum ContentObjectStatus { | ||
export interface ComplexSearchQuery extends ObjectSearchQuery { | ||
vector?: VectorSearchQuery; | ||
} | ||
export interface VectorSearchQuery { | ||
objectId?: string; | ||
values?: number[]; | ||
text?: string; | ||
image?: string; | ||
threshold?: number; | ||
type: SupportedEmbeddingTypes | ||
} | ||
export interface ComplexSearchPayload extends Omit<SearchPayload, 'query'> { | ||
@@ -94,0 +81,0 @@ query?: ComplexSearchQuery; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245404
4495