thirdai_key
parameter can be ommitted if the THIRDAI_KEY
environment variable is set.
ThirdAI API keys can be obtained at https://www.thirdai.com/try-bolt/
get_relevant_documents
, which returns a list of LangChain Document objects. Each document object represents a chunk of text from the indexed files. For example, it may contain a paragraph from one of the indexed PDF files. In addition to the text, the document’s metadata field contains information such as the document’s ID, the source of this document (which file it came from), and the score of the document.