code: import chromadb
  from chromadb.config import Settings
  from llama_index.vector_stores import ChromaVectorStore
  from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
  from langchain.embeddings.huggingface import HuggingFaceEmbeddings
  from llama_index.embeddings import LangchainEmbedding
  from node__parser import nodes
  from web.app import Test
  
  
  db2 = chromadb.PersistentClient("src/data")
  collection = db2.get_collection(name="embedding_vector")
  embed_model = LangchainEmbedding(
      HuggingFaceEmbeddings(model_name="ai-forever/sbert_large_nlu_ru")
  )
  service_context = ServiceContext.from_defaults(embed_model=embed_model)
  
  
  vector_store = ChromaVectorStore(chroma_collection=collection)
  index = VectorStoreIndex.from_vector_store(
      vector_store,
      service_context=service_context,
  )
  index.insert_nodes(nodes)
  
  
  query_engine = index.as_query_engine()
  response = query_engine.query(Test)
  
apis: llama_index.VectorStoreIndex.from_vector_store llama_index.ServiceContext.from_defaults llama_index.vector_stores.ChromaVectorStore
extract_api: [((384, 421), 'chromadb.PersistentClient', 'chromadb.PersistentClient', (['"""src/data"""'], {}), "('src/data')\n", (409, 421), False, 'import chromadb\n'), ((608, 661), 'llama_index.ServiceContext.from_defaults', 'ServiceContext.from_defaults', ([], {'embed_model': 'embed_model'}), '(embed_model=embed_model)\n', (636, 661), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n'), ((682, 729), 'llama_index.vector_stores.ChromaVectorStore', 'ChromaVectorStore', ([], {'chroma_collection': 'collection'}), '(chroma_collection=collection)\n', (699, 729), False, 'from llama_index.vector_stores import ChromaVectorStore\n'), ((739, 825), 'llama_index.VectorStoreIndex.from_vector_store', 'VectorStoreIndex.from_vector_store', (['vector_store'], {'service_context': 'service_context'}), '(vector_store, service_context=\n    service_context)\n', (773, 825), False, 'from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n'), ((520, 585), 'langchain.embeddings.huggingface.HuggingFaceEmbeddings', 'HuggingFaceEmbeddings', ([], {'model_name': '"""ai-forever/sbert_large_nlu_ru"""'}), "(model_name='ai-forever/sbert_large_nlu_ru')\n", (541, 585), False, 'from langchain.embeddings.huggingface import HuggingFaceEmbeddings\n')]