index = load_index_from_storage(
StorageContext.from_defaults(persist_dir="./citation"),
)
response = index.as_query_engine(llm=llm).query( my_query )
File ".../python3.9/site-packages/llama_index/core/base/embeddings/base.py", line 57, in similarity
product = np.dot(embedding1, embedding2)
ValueError: shapes (1536,) and (3072,) not aligned: 1536 (dim 0) != 3072 (dim 0)
documents = SimpleDirectoryReader("./data").load_data()
index = VectorStoreIndex.from_documents(
documents,
)
index.storage_context.persist(persist_dir="./citation")