from llama_index import GPTSimpleVectorIndex
index = GPTSimpleVectorIndex([])
for doc in documents:
index.insert(doc)
可以参考官方文档:https://gpt-index.readthedocs.io/en/latest/guides/primer/usage_pattern.html
网友回复
from llama_index import GPTSimpleVectorIndex
index = GPTSimpleVectorIndex([])
for doc in documents:
index.insert(doc)
可以参考官方文档:https://gpt-index.readthedocs.io/en/latest/guides/primer/usage_pattern.html
网友回复