主页

索引

模块索引

搜索页面

LLamaIndex

源码结构:

llama-index-core:
    pip install llama-index-core
llama-index-integrations:
    具体查看: https://llamahub.ai/
    包含的分类:
        Agents:
            pip install llama-index-agent-xxx
            :
            pip install llama-index-agent-openai
        Data Loaders
            pip install llama-index-readers-xxx
            :
            pip install llama-index-readers-file
        Embeddings
            pip install llama-index-embeddings-xxx
            :
            pip install llama-index-embeddings-huggingface
            pip install llama-index-embeddings-openai
        LLMs
            pip install llama-index-llm-xxx
            :
            pip install llama-index-llms-openai
            pip install llama-index-llms-huggingface
        multi-modal-llms
            pip install llama-index-multi-modal-llms-xxx
            :
            pip install llama-index-multi-modal-llms-openai
        Vector Store
            pip install llama-index-vector-stores-xxx
            :
            pip install llama-index-vector-stores-chroma
        Callbacks
            pip install llama-index-callbacks-xxx
            :
            pip install llama-index-callbacks-aim
        ...
llama-index-legacy
    pip install llama-index-legacy
llama-index-networks
    pip install llama-index-networks
llama-index-utils
    包含:
    llama-index-utils-qianfan
    llama-index-utils-huggingface
    llama-index-utils-azure
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
JSON                             43              0              0         484302
Python                         3591          66177          61223         281472
HTML                              8            427             14         192353
Jupyter Notebook                650              0         267034          50336
Markdown                       1519          15486              0          37243
TOML                            545           5192            232          29354
YAML                             30             44             51          12851
CSV                               5             12              0           6135
JavaScript                        6            301            567           1957
Text                            139            499              0           1146
Bazel                            83             44              0            715
Scheme                           16            136             42            456
Bourne Again Shell                1             62             61            387
CSS                               3             20              6            130
make                              9             53              0            123
Dockerfile                        6             64             20            119
XML                               2              1              0             82
Bourne Shell                      3              8              9             42
SVG                               1              0              0             18
INI                               1              5              0             13
SQL                               1              0              0              1
--------------------------------------------------------------------------------
SUM:                           6662          88531         329259        1099235
--------------------------------------------------------------------------------

pip install llama-index 默认安装:

llama-index-core
llama-index-legacy # temporarily included
llama-index-llms-openai
llama-index-embeddings-openai
llama-index-program-openai
llama-index-question-gen-openai
llama-index-agent-openai
llama-index-readers-file
llama-index-multi-modal-llms-openai

常用依赖:

llama-index-llms-ollama
llama-index-embeddings-huggingface

主页

索引

模块索引

搜索页面