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
- 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
- ToolFactory
- 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
- MessageToolCall
- MetadataFilters
- MetadataInfo
- NodeParser
- NodeWithScore
- RefDocInfo
- RelatedNodeInfo
- ResponseBuilder
- ResponseBuilderParamsBase
- ResponseBuilderParamsNonStreaming
- ResponseBuilderParamsStreaming
- RetrievalCallbackResponse
- ServiceContext
- ServiceContextOptions
- SingleSelection
- StorageContext
- StreamCallbackResponse
- StructuredOutput
- SummaryIndexOptions
- SynthesizeParamsBase
- SynthesizeParamsNonStreaming
- SynthesizeParamsStreaming
- ToolMetadata
- TransformComponent
- VectorIndexConstructorProps
- VectorIndexOptions
- VectorStore
- VectorStoreInfo
- VectorStoreQuery
- VectorStoreQueryResult
- VectorStoreQuerySpec
Other
AnthropicStreamToken
Ƭ AnthropicStreamToken: Anthropic.Completion
Defined in
packages/core/src/callbacks/CallbackManager.ts:70
AssemblyAIOptions
Ƭ AssemblyAIOptions: Partial
<BaseServiceParams
>
Defined in
packages/core/src/readers/AssemblyAIReader.ts:13
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
>: AdditionalMessageOptions
extends Record
<string
, unknown
> ? { content
: MessageContent
; options?
: AdditionalMessageOptions
; role
: MessageType
} : { content
: MessageContent
; options
: AdditionalMessageOptions
; role
: MessageType
}
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends Record <string , unknown > = Record <string , unknown > |
Defined in
packages/core/src/llm/types.ts:102
ChatResponseChunk
Ƭ ChatResponseChunk<AdditionalMessageOptions
>: AdditionalMessageOptions
extends Record
<string
, unknown
> ? { delta
: string
; options?
: AdditionalMessageOptions
} : { delta
: string
; options
: AdditionalMessageOptions
}
Type parameters
Name | Type |
---|---|
AdditionalMessageOptions | extends Record <string , unknown > = Record <string , unknown > |
Defined in
packages/core/src/llm/types.ts:133
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
<"llm-end"
, { id
: UUID
; response
: ChatResponse
}>
Defined in
packages/core/src/llm/types.ts:18
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:154
LLMStartEvent
Ƭ LLMStartEvent: LLMBaseEvent
<"llm-start"
, { id
: UUID
; messages
: ChatMessage
[] }>
Defined in
packages/core/src/llm/types.ts:11
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
MessageContentDetail
Ƭ MessageContentDetail: MessageContentTextDetail
| MessageContentImageDetail
Defined in
MessageContentImageDetail
Ƭ MessageContentImageDetail: Object
Type declaration
Name | Type |
---|---|
image_url | { url : string } |
image_url.url | string |
type | "image_url" |
Defined in
MessageContentTextDetail
Ƭ MessageContentTextDetail: Object
Type declaration
Name | Type |
---|---|
text | string |
type | "text" |
Defined in
MessageType
Ƭ MessageType: "user"
| "assistant"
| "system"
| "generic"
| "function"
| "memory"
| "tool"
Defined in
packages/core/src/llm/types.ts:84
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:155
OpenAIAdditionalMessageOptions
Ƭ OpenAIAdditionalMessageOptions: Object
Type declaration
Name | Type |
---|---|
functionName? | string |
toolCalls? | ChatCompletionMessageToolCall [] |
Defined in
packages/core/src/llm/open_ai.ts:150
OpenAIAdditionalMetadata
Ƭ OpenAIAdditionalMetadata: Object
Type declaration
Name | Type |
---|---|
isFunctionCallingModel | boolean |
Defined in
packages/core/src/llm/open_ai.ts:146
OpenAIStreamToken
Ƭ OpenAIStreamToken: DefaultStreamToken
Defined in
packages/core/src/callbacks/CallbackManager.ts:69
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
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 |
queryEngine | BaseQueryEngine |
Defined in
packages/core/src/tools/QueryEngineTool.ts:3
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:5
SelectorResult
Ƭ SelectorResult: Object
Type declaration
Name | Type |
---|---|
selections | SingleSelection [] |
Defined in
packages/core/src/selectors/base.ts:14
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
ToolMetadataOnlyDescription
Ƭ ToolMetadataOnlyDescription: Pick
<ToolMetadata
, "description"
>
Defined in
packages/core/src/types.ts:102
ToolParameters
Ƭ ToolParameters: Object
Type declaration
Name | Type |
---|---|
properties | Record <string , { description? : string ; type : string }> |
required? | string [] |
type | string | "object" |
Defined in
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