llamaindex
Enumerations
- ChatResponseMode
- ClipEmbeddingModelType
- DeuceChatStrategy
- HuggingFaceEmbeddingModelType
- IndexStructType
- KeywordTableRetrieverMode
- MetadataMode
- MistralAIEmbeddingModelType
- NodeRelationship
- ObjectType
- SimilarityType
- SummaryRetrieverMode
- Tokenizers
- VectorStoreQueryMode
Classes
- AgentChatResponse
- Anthropic
- AstraDBVectorStore
- AudioSubtitlesReader
- AudioTranscriptParagraphsReader
- AudioTranscriptReader
- AudioTranscriptSentencesReader
- AzureOpenAI
- BaseAgent
- BaseDocumentStore
- BaseEmbedding
- BaseExtractor
- BaseInMemoryKVStore
- BaseIndex
- BaseIndexStore
- BaseKVStore
- BaseNode
- BaseObjectNodeMapping
- BaseSelector
- CallbackManager
- ChatHistory
- ChromaVectorStore
- ClipEmbedding
- CohereRerank
- CompactAndRefine
- CondenseQuestionChatEngine
- ContextChatEngine
- CorrectnessEvaluator
- Document
- DocxReader
- FaithfulnessEvaluator
- FireworksEmbedding
- FireworksLLM
- FunctionTool
- Groq
- HTMLReader
- HuggingFaceEmbedding
- ImageDocument
- ImageNode
- ImageReader
- IndexDict
- IndexList
- IndexNode
- IndexStruct
- IngestionPipeline
- KeywordExtractor
- KeywordTable
- KeywordTableIndex
- KeywordTableLLMRetriever
- KeywordTableRAKERetriever
- KeywordTableSimpleRetriever
- LLMMultiSelector
- LLMQuestionGenerator
- LLMSingleSelector
- LlamaCloudIndex
- LlamaCloudRetriever
- LlamaDeuce
- LlamaIndexCustomEvent
- LlamaParseReader
- MarkdownNodeParser
- MarkdownReader
- MetadataReplacementPostProcessor
- MilvusVectorStore
- MistralAI
- MistralAIEmbedding
- MistralAISession
- MongoDBAtlasVectorSearch
- MultiModalEmbedding
- MultiModalResponseSynthesizer
- NotionReader
- ObjectIndex
- ObjectRetriever
- Ollama
- OllamaEmbedding
- OpenAI
- OpenAIAgent
- OpenAIAgentWorker
- OpenAIEmbedding
- OpenAISession
- PDFReader
- PGVectorStore
- PapaCSVReader
- PineconeVectorStore
- Portkey
- PromptHelper
- PromptMixin
- QdrantVectorStore
- QueryEngineTool
- QuestionsAnsweredExtractor
- ReActAgent
- ReActAgentWorker
- Refine
- RelevancyEvaluator
- ReplicateSession
- Response
- ResponseSynthesizer
- RetrieverQueryEngine
- RouterQueryEngine
- SentenceSplitter
- SentenceWindowNodeParser
- SimilarityPostprocessor
- SimpleChatEngine
- SimpleChatHistory
- SimpleChatStore
- SimpleDirectoryReader
- SimpleDocumentStore
- SimpleIndexStore
- SimpleKVStore
- SimpleMongoReader
- SimpleNodeParser
- SimpleResponseBuilder
- SimpleToolNodeMapping
- SimpleVectorStore
- StreamingAgentChatResponse
- SubQuestionOutputParser
- SubQuestionQueryEngine
- SummaryChatHistory
- SummaryExtractor
- SummaryIndex
- SummaryIndexLLMRetriever
- SummaryIndexRetriever
- Task
- TaskStep
- TaskStepOutput
- TextFileReader
- TextNode
- TitleExtractor
- TogetherEmbedding
- TogetherLLM
- ToolOutput
- TreeSummarize
- VectorIndexRetriever
- VectorStoreIndex
- WikipediaTool
Interfaces
- AgentWorker
- BaseChatStore
- BaseIndexInit
- BaseNodePostprocessor
- BaseOutputParser
- BaseQueryEngine
- BaseReader
- BaseRetriever
- BaseSynthesizer
- BaseTool
- ChatEngine
- ChatEngineAgentParams
- ChatEngineParamsBase
- ChatEngineParamsNonStreaming
- ChatEngineParamsStreaming
- ChatResponse
- CompletionResponse
- Context
- ContextGenerator
- DefaultStreamToken
- ExactMatchFilter
- FileReader
- KeywordIndexOptions
- LLM
- LLMChat
- LLMChatParamsBase
- LLMChatParamsNonStreaming
- LLMChatParamsStreaming
- LLMCompletionParamsBase
- LLMCompletionParamsNonStreaming
- LLMCompletionParamsStreaming
- LlamaIndexEventMaps
- MetadataFilters
- MetadataInfo
- NodeParser
- NodeWithScore
- RefDocInfo
- RelatedNodeInfo
- ResponseBuilder
- ResponseBuilderParamsBase
- ResponseBuilderParamsNonStreaming
- ResponseBuilderParamsStreaming
- RetrievalCallbackResponse
- ServiceContext
- ServiceContextOptions
- SingleSelection
- StorageContext
- StreamCallbackResponse
- StructuredOutput
- SummaryIndexOptions
- SynthesizeParamsBase
- SynthesizeParamsNonStreaming
- SynthesizeParamsStreaming
- TransformComponent
- VectorIndexConstructorProps
- VectorIndexOptions
- VectorStore
- VectorStoreInfo
- VectorStoreQuery
- VectorStoreQueryResult
- VectorStoreQuerySpec
Other
ReplicateChatStrategy
Renames and re-exports DeuceChatStrategy
ReplicateLLM
Renames and re-exports LlamaDeuce
AnthropicStreamToken
Ƭ AnthropicStreamToken: Anthropic.Completion
Defined in
packages/core/src/callbacks/CallbackManager.ts:77
AssemblyAIOptions
Ƭ AssemblyAIOptions: Partial
<BaseServiceParams
>
Defined in
packages/core/src/readers/AssemblyAIReader.ts:13
BaseToolWithCall
Ƭ BaseToolWithCall<Input
>: Omit
<BaseTool
<Input
>, "call"
> & { call
: NonNullable
<Pick
<BaseTool
<Input
>, "call"
>["call"
]> }
Type parameters
Name | Type |
---|---|
Input | any |
Defined in
BuilderParams
Ƭ BuilderParams: Object
Type declaration
Name | Type |
---|---|
docStore | BaseDocumentStore |
fs | GenericFileSystem |
imageVectorStore | VectorStore |
indexStore | BaseIndexStore |
persistDir | string |
storeImages | boolean |
vectorStore | VectorStore |
Defined in
packages/core/src/storage/StorageContext.ts:21
ChatMessage
Ƭ ChatMessage<AdditionalMessageOptions
>: Object
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends object = object |
Type declaration
Name | Type |
---|---|
content | MessageContent |
options? | AdditionalMessageOptions |
role | MessageType |
Defined in
packages/core/src/llm/types.ts:80
ChatResponseChunk
Ƭ ChatResponseChunk<AdditionalMessageOptions
>: Object
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends object = object |
Type declaration
Name | Type |
---|---|
delta | string |
options? | AdditionalMessageOptions |
raw | object | null |
Defined in
packages/core/src/llm/types.ts:98
ChoiceSelectPrompt
Ƭ ChoiceSelectPrompt: typeof defaultChoiceSelectPrompt
Defined in
packages/core/src/Prompt.ts:178
CloudRetrieveParams
Ƭ CloudRetrieveParams: Omit
<PlatformApi.RetrievalParams
, "query"
| "searchFilters"
| "pipelineId"
| "className"
> & { similarityTopK?
: number
}
Defined in
packages/core/src/cloud/LlamaCloudRetriever.ts:12
CondenseQuestionPrompt
Ƭ CondenseQuestionPrompt: typeof defaultCondenseQuestionPrompt
Defined in
packages/core/src/Prompt.ts:359
ContextSystemPrompt
Ƭ ContextSystemPrompt: typeof defaultContextSystemPrompt
Defined in
packages/core/src/Prompt.ts:380
CorrectnessSystemPrompt
Ƭ CorrectnessSystemPrompt: typeof defaultCorrectnessSystemPrompt
Defined in
packages/core/src/evaluation/prompts.ts:52
FaithfulnessRefinePrompt
Ƭ FaithfulnessRefinePrompt: typeof defaultFaithfulnessRefinePrompt
Defined in
packages/core/src/evaluation/prompts.ts:76
FaithfulnessTextQAPrompt
Ƭ FaithfulnessTextQAPrompt: typeof defaultFaithfulnessTextQaPrompt
Defined in
packages/core/src/evaluation/prompts.ts:115
ImageNodeConstructorProps
Ƭ ImageNodeConstructorProps<T
>: Pick
<ImageNode
<T
>, "image"
| "id_"
> & Partial
<ImageNode
<T
>>
Type parameters
Name | Type |
---|---|
T | extends Metadata |
Defined in
ImageType
Ƭ ImageType: string
| Blob
| URL
Defined in
KeywordExtractPrompt
Ƭ KeywordExtractPrompt: typeof defaultKeywordExtractPrompt
Defined in
packages/core/src/Prompt.ts:395
LLMEndEvent
Ƭ LLMEndEvent: LLMBaseEvent
<{ id
: UUID
; response
: ChatResponse
}>
Defined in
packages/core/src/llm/types.ts:17
LLMMetadata
Ƭ LLMMetadata: Object
Type declaration
Name | Type |
---|---|
contextWindow | number |
maxTokens? | number |
model | string |
temperature | number |
tokenizer | Tokenizers | undefined |
topP | number |
Defined in
packages/core/src/llm/types.ts:116
LLMStartEvent
Ƭ LLMStartEvent: LLMBaseEvent
<{ id
: UUID
; messages
: ChatMessage
[] }>
Defined in
packages/core/src/llm/types.ts:8
LLMStreamEvent
Ƭ LLMStreamEvent: LLMBaseEvent
<{ chunk
: ChatResponseChunk
; id
: UUID
}>
Defined in
packages/core/src/llm/types.ts:21
LLMToolCallEvent
Ƭ LLMToolCallEvent: LLMBaseEvent
<{ toolCall
: Omit
<ToolCallOptions
["toolCall"
], "id"
> }>
Defined in
packages/core/src/llm/types.ts:12
ListIndex
Ƭ ListIndex: SummaryIndex
Defined in
packages/core/src/indices/summary/index.ts:279
ListIndexLLMRetriever
Ƭ ListIndexLLMRetriever: SummaryIndexLLMRetriever
Defined in
packages/core/src/indices/summary/index.ts:389
ListIndexRetriever
Ƭ ListIndexRetriever: SummaryIndexRetriever
Defined in
packages/core/src/indices/summary/index.ts:388
ListRetrieverMode
Ƭ ListRetrieverMode: SummaryRetrieverMode
Defined in
packages/core/src/indices/summary/index.ts:280
MessageContent
Ƭ MessageContent: string
| MessageContentDetail
[]
Extended type for the content of a message that allows for multi-modal messages.
Defined in
packages/core/src/llm/types.ts:178
MessageContentDetail
Ƭ MessageContentDetail: MessageContentTextDetail
| MessageContentImageDetail
Defined in
packages/core/src/llm/types.ts:171
MessageContentImageDetail
Ƭ MessageContentImageDetail: Object
Type declaration
Name | Type |
---|---|
image_url | { url : string } |
image_url.url | string |
type | "image_url" |
Defined in
packages/core/src/llm/types.ts:166
MessageContentTextDetail
Ƭ MessageContentTextDetail: Object
Type declaration
Name | Type |
---|---|
text | string |
type | "text" |
Defined in
packages/core/src/llm/types.ts:161
MessageType
Ƭ MessageType: "user"
| "assistant"
| "system"
| "memory"
Defined in
packages/core/src/llm/types.ts:78
Metadata
Ƭ Metadata: Record
<string
, any
>
Defined in
OpenAIAdditionalChatOptions
Ƭ OpenAIAdditionalChatOptions: Omit
<Partial
<OpenAILLM.Chat.ChatCompletionCreateParams
>, "max_tokens"
| "messages"
| "model"
| "temperature"
| "top_p"
| "stream"
| "tools"
| "toolChoice"
>
Defined in
packages/core/src/llm/open_ai.ts:149
OpenAIAdditionalMetadata
Ƭ OpenAIAdditionalMetadata: Object
Defined in
packages/core/src/llm/open_ai.ts:147
OpenAIStreamToken
Ƭ OpenAIStreamToken: DefaultStreamToken
Defined in
packages/core/src/callbacks/CallbackManager.ts:76
QueryBundle
Ƭ QueryBundle: Object
Link
We don't have image_path
here, because it is included in the query
field.
Type declaration
Name | Type |
---|---|
embedding? | number [] |
query | MessageContent |
Defined in
QueryEngineParam
Ƭ QueryEngineParam: Object
Type declaration
Name | Type |
---|---|
query | string |
Defined in
packages/core/src/tools/QueryEngineTool.ts:24
QueryEngineParamsBase
Ƭ QueryEngineParamsBase: Object
Parameters for sending a query.
Type declaration
Name | Type |
---|---|
query | MessageContent | QueryBundle |
Defined in
QueryEngineParamsNonStreaming
Ƭ QueryEngineParamsNonStreaming: QueryEngineParamsBase
& { stream?
: false
}
Defined in
QueryEngineParamsStreaming
Ƭ QueryEngineParamsStreaming: QueryEngineParamsBase
& { stream
: true
}
Defined in
QueryEngineToolParams
Ƭ QueryEngineToolParams: Object
Type declaration
Name | Type |
---|---|
metadata | ToolMetadata <JSONSchemaType <QueryEngineParam >> |
queryEngine | BaseQueryEngine |
Defined in
packages/core/src/tools/QueryEngineTool.ts:19
QueryKeywordExtractPrompt
Ƭ QueryKeywordExtractPrompt: typeof defaultQueryKeywordExtractPrompt
Defined in
packages/core/src/Prompt.ts:411
RefinePrompt
Ƭ RefinePrompt: typeof defaultRefinePrompt
Defined in
packages/core/src/Prompt.ts:119
RelatedNodeType
Ƭ RelatedNodeType<T
>: RelatedNodeInfo
<T
> | RelatedNodeInfo
<T
>[]
Type parameters
Name | Type |
---|---|
T | extends Metadata = Metadata |
Defined in
RelevancyEvalPrompt
Ƭ RelevancyEvalPrompt: typeof defaultRelevancyEvalPrompt
Defined in
packages/core/src/evaluation/prompts.ts:130
RelevancyRefinePrompt
Ƭ RelevancyRefinePrompt: typeof defaultRelevancyRefinePrompt
Defined in
packages/core/src/evaluation/prompts.ts:155
ResponseBuilderPrompts
Ƭ ResponseBuilderPrompts: TextQaPrompt
| TreeSummarizePrompt
| RefinePrompt
Defined in
packages/core/src/synthesizers/builders.ts:396
RetrieveParams
Ƭ RetrieveParams<Filters
>: Object
Type parameters
Name | Type |
---|---|
Filters | unknown |
Type declaration
Name | Type |
---|---|
preFilters? | Filters |
query | QueryBundle | MessageContent |
Defined in
packages/core/src/Retriever.ts:6
SelectorResult
Ƭ SelectorResult: Object
Type declaration
Name | Type |
---|---|
selections | SingleSelection [] |
Defined in
packages/core/src/selectors/base.ts:11
SimplePrompt
Ƭ SimplePrompt: (input
: Record
<string
, string
| undefined
>) => string
A SimplePrompt is a function that takes a dictionary of inputs and returns a string. NOTE this is a different interface compared to LlamaIndex Python NOTE 2: we default to empty string to make it easy to calculate prompt sizes
Type declaration
▸ (input
): string
Parameters
Name | Type |
---|---|
input | Record <string , string | undefined > |
Returns
string
Defined in
packages/core/src/Prompt.ts:10
SubQuestionPrompt
Ƭ SubQuestionPrompt: typeof defaultSubQuestionPrompt
Defined in
packages/core/src/Prompt.ts:327
SubtitleFormat
Ƭ SubtitleFormat: "srt"
| "vtt"
Format of the subtitles
Defined in
node_modules/.pnpm/assemblyai@4.3.4/node_modules/assemblyai/dist/types/openapi.generated.d.ts:1188
SummaryPrompt
Ƭ SummaryPrompt: typeof defaultSummaryPrompt
Defined in
packages/core/src/Prompt.ts:76
TextQaPrompt
Ƭ TextQaPrompt: typeof defaultTextQaPrompt
Defined in
packages/core/src/Prompt.ts:37
ToolCall
Ƭ ToolCall: Object
Type declaration
Name | Type |
---|---|
id | string |
input | unknown |
name | string |
Defined in
packages/core/src/llm/types.ts:180
ToolCallLLMMessageOptions
Ƭ ToolCallLLMMessageOptions: ToolResultOptions
| ToolCallOptions
| {}
Defined in
packages/core/src/llm/types.ts:202
ToolCallOptions
Ƭ ToolCallOptions: Object
Type declaration
Name | Type |
---|---|
toolCall | ToolCall |
Defined in
packages/core/src/llm/types.ts:194
ToolMetadata
Ƭ ToolMetadata<Parameters
>: Object
Type parameters
Name | Type |
---|---|
Parameters | extends Record <string , unknown > = Record <string , unknown > |
Type declaration
Name | Type | Description |
---|---|---|
description | string | - |
name | string | - |
parameters? | Parameters | OpenAI uses JSON Schema to describe the parameters that a tool can take. Link https://json-schema.org/understanding-json-schema |
Defined in
ToolMetadataOnlyDescription
Ƭ ToolMetadataOnlyDescription: Pick
<ToolMetadata
, "description"
>
Defined in
packages/core/src/types.ts:102
ToolResult
Ƭ ToolResult: Object
Type declaration
Name | Type |
---|---|
id | string |
isError | boolean |
result | string |
Defined in
packages/core/src/llm/types.ts:188
ToolResultOptions
Ƭ ToolResultOptions: Object
Type declaration
Name | Type |
---|---|
toolResult | ToolResult |
Defined in
packages/core/src/llm/types.ts:198
TranscribeParams
Ƭ TranscribeParams: { audio
: AudioToTranscribe
} & Omit
<TranscriptParams
, "audio_url"
> | TranscriptParams
The parameters to transcribe an audio file.
Defined in
node_modules/.pnpm/assemblyai@4.3.4/node_modules/assemblyai/dist/types/transcripts/index.d.ts:35
TreeSummarizePrompt
Ƭ TreeSummarizePrompt: typeof defaultTreeSummarizePrompt
Defined in
packages/core/src/Prompt.ts:144
UUID
Ƭ UUID: `${string}-${string}-${string}-${string}-${string}`
Defined in
packages/core/src/types.ts:104
UserPrompt
Ƭ UserPrompt: typeof defaultUserPrompt
Defined in
packages/core/src/evaluation/prompts.ts:20
VectorIndexRetrieverOptions
Ƭ VectorIndexRetrieverOptions: Object
VectorIndexRetriever retrieves nodes from a VectorIndex.
Type declaration
Name | Type |
---|---|
imageSimilarityTopK? | number |
index | VectorStoreIndex |
similarityTopK? | number |
Defined in
packages/core/src/indices/vectorStore/index.ts:380
WikipediaToolParams
Ƭ WikipediaToolParams: Object
Type declaration
Name | Type |
---|---|
metadata? | ToolMetadata <JSONSchemaType <WikipediaParameter >> |
Defined in
packages/core/src/tools/WikipediaTool.ts:10
ALL_AVAILABLE_MISTRAL_MODELS
• Const
ALL_AVAILABLE_MISTRAL_MODELS: Object
Type declaration
Name | Type |
---|---|
mistral-medium | { contextWindow : number = 32000 } |
mistral-medium.contextWindow | number |
mistral-small | { contextWindow : number = 32000 } |
mistral-small.contextWindow | number |
mistral-tiny | { contextWindow : number = 32000 } |
mistral-tiny.contextWindow | number |
Defined in
packages/core/src/llm/mistral.ts:13
ALL_AVAILABLE_OPENAI_MODELS
• Const
ALL_AVAILABLE_OPENAI_MODELS: Object
We currently support GPT-3.5 and GPT-4 models
Type declaration
Name | Type |
---|---|
gpt-3.5-turbo | { contextWindow : number = 4096 } |
gpt-3.5-turbo.contextWindow | number |
gpt-3.5-turbo-0125 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-0125.contextWindow | number |
gpt-3.5-turbo-0613 | { contextWindow : number = 4096 } |
gpt-3.5-turbo-0613.contextWindow | number |
gpt-3.5-turbo-1106 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-1106.contextWindow | number |
gpt-3.5-turbo-16k | { contextWindow : number = 16384 } |
gpt-3.5-turbo-16k.contextWindow | number |
gpt-3.5-turbo-16k-0613 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-16k-0613.contextWindow | number |
gpt-4 | { contextWindow : number = 8192 } |
gpt-4.contextWindow | number |
gpt-4-0125-preview | { contextWindow : number = 128000 } |
gpt-4-0125-preview.contextWindow | number |
gpt-4-1106-preview | { contextWindow : number = 128000 } |
gpt-4-1106-preview.contextWindow | number |
gpt-4-32k | { contextWindow : number = 32768 } |
gpt-4-32k.contextWindow | number |
gpt-4-32k-0613 | { contextWindow : number = 32768 } |
gpt-4-32k-0613.contextWindow | number |
gpt-4-turbo | { contextWindow : number = 128000 } |
gpt-4-turbo.contextWindow | number |
gpt-4-turbo-preview | { contextWindow : number = 128000 } |
gpt-4-turbo-preview.contextWindow | number |
gpt-4-vision-preview | { contextWindow : number = 128000 } |
gpt-4-vision-preview.contextWindow | number |
Defined in
packages/core/src/llm/open_ai.ts:128
ALL_AVAILABLE_REPLICATE_MODELS
• Const
ALL_AVAILABLE_REPLICATE_MODELS: Object
Type declaration
Name | Type |
---|---|
Llama-2-13b-chat-4bit | { contextWindow : number = 4096; replicateApi : string = "meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d" } |
Llama-2-13b-chat-4bit.contextWindow | number |
Llama-2-13b-chat-4bit.replicateApi | string |
Llama-2-13b-chat-old | { contextWindow : number = 4096; replicateApi : string = "a16z-infra/llama13b-v2-chat:df7690f1994d94e96ad9d568eac121aecf50684a0b0963b25a41cc40061269e5" } |
Llama-2-13b-chat-old.contextWindow | number |
Llama-2-13b-chat-old.replicateApi | string |
Llama-2-70b-chat-4bit | { contextWindow : number = 4096; replicateApi : string = "meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3" } |
Llama-2-70b-chat-4bit.contextWindow | number |
Llama-2-70b-chat-4bit.replicateApi | string |
Llama-2-70b-chat-old | { contextWindow : number = 4096; replicateApi : string = "replicate/llama70b-v2-chat:e951f18578850b652510200860fc4ea62b3b16fac280f83ff32282f87bbd2e48" } |
Llama-2-70b-chat-old.contextWindow | number |
Llama-2-70b-chat-old.replicateApi | string |
Llama-2-7b-chat-4bit | { contextWindow : number = 4096; replicateApi : string = "meta/llama-2-7b-chat:13c3cdee13ee059ab779f0291d29054dab00a47dad8261375654de5540165fb0" } |
Llama-2-7b-chat-4bit.contextWindow | number |
Llama-2-7b-chat-4bit.replicateApi | string |
Llama-2-7b-chat-old | { contextWindow : number = 4096; replicateApi : string = "a16z-infra/llama7b-v2-chat:4f0a4744c7295c024a1de15e1a63c880d3da035fa1f49bfd344fe076074c8eea" } |
Llama-2-7b-chat-old.contextWindow | number |
Llama-2-7b-chat-old.replicateApi | string |
Defined in
packages/core/src/llm/replicate_ai.ts:33
ALL_OPENAI_EMBEDDING_MODELS
• Const
ALL_OPENAI_EMBEDDING_MODELS: Object
Type declaration
Name | Type |
---|---|
text-embedding-3-large | { dimensionOptions : number [] ; dimensions : number = 3072; maxTokens : number = 8191 } |
text-embedding-3-large.dimensionOptions | number [] |
text-embedding-3-large.dimensions | number |
text-embedding-3-large.maxTokens | number |
text-embedding-3-small | { dimensionOptions : number [] ; dimensions : number = 1536; maxTokens : number = 8191 } |
text-embedding-3-small.dimensionOptions | number [] |
text-embedding-3-small.dimensions | number |
text-embedding-3-small.maxTokens | number |
text-embedding-ada-002 | { dimensions : number = 1536; maxTokens : number = 8191 } |
text-embedding-ada-002.dimensions | number |
text-embedding-ada-002.maxTokens | number |
Defined in
packages/core/src/embeddings/OpenAIEmbedding.ts:13
DEFAULT_CHUNK_OVERLAP
• Const
DEFAULT_CHUNK_OVERLAP: 20
Defined in
packages/core/src/constants.ts:5
DEFAULT_CHUNK_OVERLAP_RATIO
• Const
DEFAULT_CHUNK_OVERLAP_RATIO: 0.1
Defined in
packages/core/src/constants.ts:6
DEFAULT_CHUNK_SIZE
• Const
DEFAULT_CHUNK_SIZE: 1024
Defined in
packages/core/src/constants.ts:4
DEFAULT_COLLECTION
• Const
DEFAULT_COLLECTION: "data"
Defined in
packages/core/src/storage/constants.ts:1
DEFAULT_CONTEXT_WINDOW
• Const
DEFAULT_CONTEXT_WINDOW: 3900
Defined in
packages/core/src/constants.ts:1
DEFAULT_DOC_STORE_PERSIST_FILENAME
• Const
DEFAULT_DOC_STORE_PERSIST_FILENAME: "doc_store.json"
Defined in
packages/core/src/storage/constants.ts:4
DEFAULT_GRAPH_STORE_PERSIST_FILENAME
• Const
DEFAULT_GRAPH_STORE_PERSIST_FILENAME: "graph_store.json"
Defined in
packages/core/src/storage/constants.ts:6
DEFAULT_IMAGE_VECTOR_NAMESPACE
• Const
DEFAULT_IMAGE_VECTOR_NAMESPACE: "images"
Defined in
packages/core/src/storage/constants.ts:8
DEFAULT_INDEX_STORE_PERSIST_FILENAME
• Const
DEFAULT_INDEX_STORE_PERSIST_FILENAME: "index_store.json"
Defined in
packages/core/src/storage/constants.ts:3
DEFAULT_NAMESPACE
• Const
DEFAULT_NAMESPACE: "docstore"
Defined in
packages/core/src/storage/constants.ts:7
DEFAULT_NUM_OUTPUTS
• Const
DEFAULT_NUM_OUTPUTS: 256
Defined in
packages/core/src/constants.ts:2
DEFAULT_OG_TEXT_METADATA_KEY
• Const
DEFAULT_OG_TEXT_METADATA_KEY: "original_text"
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:8
DEFAULT_PADDING
• Const
DEFAULT_PADDING: 5
Defined in
packages/core/src/constants.ts:9
DEFAULT_PERSIST_DIR
• Const
DEFAULT_PERSIST_DIR: "./storage"
Defined in
packages/core/src/storage/constants.ts:2
DEFAULT_SIMILARITY_TOP_K
• Const
DEFAULT_SIMILARITY_TOP_K: 2
Defined in
packages/core/src/constants.ts:7
DEFAULT_VECTOR_STORE_PERSIST_FILENAME
• Const
DEFAULT_VECTOR_STORE_PERSIST_FILENAME: "vector_store.json"
Defined in
packages/core/src/storage/constants.ts:5
DEFAULT_WINDOW_METADATA_KEY
• Const
DEFAULT_WINDOW_METADATA_KEY: "window"
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:7
DEFAULT_WINDOW_SIZE
• Const
DEFAULT_WINDOW_SIZE: 3
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:6
FILE_EXT_TO_READER
• Const
FILE_EXT_TO_READER: Record
<string
, BaseReader
>
Defined in
packages/core/src/readers/SimpleDirectoryReader.ts:15
GPT35_MODELS
• Const
GPT35_MODELS: Object
Type declaration
Name | Type |
---|---|
gpt-3.5-turbo | { contextWindow : number = 4096 } |
gpt-3.5-turbo.contextWindow | number |
gpt-3.5-turbo-0125 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-0125.contextWindow | number |
gpt-3.5-turbo-0613 | { contextWindow : number = 4096 } |
gpt-3.5-turbo-0613.contextWindow | number |
gpt-3.5-turbo-1106 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-1106.contextWindow | number |
gpt-3.5-turbo-16k | { contextWindow : number = 16384 } |
gpt-3.5-turbo-16k.contextWindow | number |
gpt-3.5-turbo-16k-0613 | { contextWindow : number = 16384 } |
gpt-3.5-turbo-16k-0613.contextWindow | number |
Defined in
packages/core/src/llm/open_ai.ts:116
GPT4_MODELS
• Const
GPT4_MODELS: Object
Type declaration
Name | Type |
---|---|
gpt-4 | { contextWindow : number = 8192 } |
gpt-4.contextWindow | number |
gpt-4-0125-preview | { contextWindow : number = 128000 } |
gpt-4-0125-preview.contextWindow | number |
gpt-4-1106-preview | { contextWindow : number = 128000 } |
gpt-4-1106-preview.contextWindow | number |
gpt-4-32k | { contextWindow : number = 32768 } |
gpt-4-32k.contextWindow | number |
gpt-4-32k-0613 | { contextWindow : number = 32768 } |
gpt-4-32k-0613.contextWindow | number |
gpt-4-turbo | { contextWindow : number = 128000 } |
gpt-4-turbo.contextWindow | number |
gpt-4-turbo-preview | { contextWindow : number = 128000 } |
gpt-4-turbo-preview.contextWindow | number |
gpt-4-vision-preview | { contextWindow : number = 128000 } |
gpt-4-vision-preview.contextWindow | number |
Defined in
packages/core/src/llm/open_ai.ts:104
Settings
• Const
Settings: GlobalSettings
Defined in
packages/core/src/Settings.ts:224
defaultParagraphSeparator
• Const
defaultParagraphSeparator: string
Defined in
packages/core/src/TextSplitter.ts:58
globalsHelper
• Const
globalsHelper: GlobalsHelper
Defined in
packages/core/src/GlobalsHelper.ts:49
anthropicSummaryPrompt
▸ anthropicSummaryPrompt(«destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› context | undefined | string | "" |
Returns
string
Defined in
packages/core/src/Prompt.ts:78
anthropicTextQaPrompt
▸ anthropicTextQaPrompt(«destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› context | undefined | string | "" |
› query | undefined | string | "" |
Returns
string
Defined in
packages/core/src/Prompt.ts:39
batchEmbeddings
▸ batchEmbeddings<T
>(values
, embedFunc
, chunkSize
, options?
): Promise
<number
[][]>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
values | T [] |
embedFunc | EmbedFunc <T > |
chunkSize | number |
options? | Object |
options.logProgress? | boolean |
Returns
Promise
<number
[][]>
Defined in
packages/core/src/embeddings/types.ts:71
buildToolsText
▸ buildToolsText(tools
): string
Parameters
Name | Type |
---|---|
tools | ToolMetadata [] |
Returns
string
Defined in
packages/core/src/Prompt.ts:256
callToolWithErrorHandling
▸ callToolWithErrorHandling(tool
, input
): Promise
<ToolOutput
>
Parameters
Name | Type |
---|---|
tool | BaseTool <any > |
input | unknown |
Returns
Promise
<ToolOutput
>
Defined in
packages/core/src/tools/utils.ts:5
cjkSentenceTokenizer
▸ cjkSentenceTokenizer(sentence
): string
[]
Tokenizes sentences. Suitable for Chinese, Japanese, and Korean. Use instead of defaultSentenceTokenizer
.
Parameters
Name | Type |
---|---|
sentence | string |
Returns
string
[]
string[]
Defined in
packages/core/src/TextSplitter.ts:42
defaultChoiceSelectPrompt
▸ defaultChoiceSelectPrompt(«destructured»
): string