Class: FixieCorpus<ChunkMetadata>
batteries/docs.FixieCorpus
A fully mananged Corpus served by Fixie.
Type parameters
Name | Type |
---|---|
ChunkMetadata | extends Jsonifiable = Jsonifiable |
Implements
Corpus
<ChunkMetadata
>
Constructors
constructor
• new FixieCorpus<ChunkMetadata
>(corpusId
, fixieApiKey?
)
Type parameters
Name | Type |
---|---|
ChunkMetadata | extends Jsonifiable = Jsonifiable |
Parameters
Name | Type |
---|---|
corpusId | string |
fixieApiKey? | string |
Defined in
packages/ai-jsx/src/batteries/docs.tsx:623
Methods
search
▸ search(query
, params?
): Promise
<ScoredChunk
<ChunkMetadata
>[]>
Finds document chunks that are semantically similar to the provided query.
Parameters
Name | Type |
---|---|
query | string |
params? | Object |
params.limit? | number |
Returns
Promise
<ScoredChunk
<ChunkMetadata
>[]>