----------------------
You can view all the index documents using the
GPTListIndex
class. You can create an instance of the
GPTListIndex
class by passing in a list of documents, as shown in the example code below:
index = GPTListIndex(documents)
You can then use the
query()
method to view all the documents in the index, as shown in the example code below:
response = index.query("<query_text>")
You can also use the
load_langchain_documents()
method to load data in LangChain document format, as shown in the example code below:
response = load_langchain_documents(load_kwargs)
You can also use the
load_data()
method to load data from Faiss, as shown in the example code below:
response = load_data(query, id_to_text_map, k, separate_documents)
Finally, you can use the
QdrantReader
class to retrieve documents from existing Qdrant collections, as shown in the example code below:
response = QdrantReader(host, port, grpc_port, prefer_grpc, https, api_key, prefix, timeout)
For more information, please refer to the
GPT Index Documentation (
https://gpt-index.readthedocs.io/en/latest/).
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------