raptor
raptor copied to clipboard
The official implementation of RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval
I saved the tree in a path and I am using it in a different instance. When I use RA.answer_question(question) it come back with answer along with this: 2024-03-07 12:04:53,593...
Hi, thanks for sharing the code publicly. I have a few questions about using a custom model for RAPTOR: 1. Do I create a new file for running the lines...
When building hundred million texts , it is too slow to construct the Tree
Retrieval with functionality of adding new documents implemented. Method add_to_existing implemented in RetrievalAugmentation
The script https://github.com/parthsarthi03/raptor/blob/2e3e83e5c4aa6a9b5f2d8359f5b71a9159c20845/raptor/cluster_tree_builder.py#L114C1-L126C49 ```if use_multithreading: with ThreadPoolExecutor() as executor: for cluster in clusters: executor.submit( process_cluster, cluster, new_level_nodes, next_node_index, summarization_length, lock, ) next_node_index += 1 executor.shutdown(wait=True) ``` runs the risk of...
I tried to run demo code for testing, but there is the error. ``` ` from raptor import RetrievalAugmentation RA = RetrievalAugmentation() with open('demo/sample.txt', 'r') as file: text = file.read()...
### Discussed in https://github.com/parthsarthi03/raptor/discussions/47 Originally posted by **jsvan** July 3, 2024 Hello, Could you please share the testing scripts for the Narrative/QuALITY/Qasper scores? I'd like to run some experiments on...
When there was an empty string to embed, OpenAI raised an error. I fixed it.
fix typo