llama_index索引处理源码分析
## 版本环境:py310 环境的 LlamaIndex 0.14.25 # 设置ChromaVectorStore并加载数据 vector_store = ChromaVectorStore(chroma_collection=chroma_collection) Storage_Context = StorageContext.from_defaults(vector_store=vector_store) # 创建索引 VectorStoreIndex 默认的索引工具 index = VectorStoreIndex.from_documents(documents, storage_context=Storage_Context, embed_model=embed_model)