Generated queries:
1. 유효성 롤업의 장단점은 무엇인가?
2. 유효성 롤업이 왜 중요한가?
3. 유효성 롤업을 효과적으로 구현하는 방법은?
response
Response(response='The goal of Validity Rollups is to ensure the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum.', source_nodes=[NodeWithScore(node=TextNode(id_='960bba74-4039-4cce-b62b-a89764a6bced', embedding=None, metadata={'page_label': '3', 'file_name': 'Analysis_and_Comparison_between_Optimism_and_StarkNet.pdf'}, excluded_embed_metadata_keys=[], excluded_llm_metadata_keys=[], relationships={<NodeRelationship.SOURCE: '1'>: RelatedNodeInfo(node_id='85a01680-d7be-475d-9355-51aa0504602b', node_type=<ObjectType.DOCUMENT: '4'>, metadata={'page_label': '3', 'file_name': 'Analysis_and_Comparison_between_Optimism_and_StarkNet.pdf'}, hash='162138014c4d86025fcd3966a59c200affab1200ec9a8f16c8e545d32b05cf51')
response.response
'The goal of Validity Rollups is to ensure the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum.'
Generated queries:
1. 유효성 롤업의 중요성은 무엇인가?
2. 유효성 롤업의 장단점은 무엇인가?
3. 유효성 롤업을 효과적으로 구현하는 방법은 무엇인가?
response.response
'The goal of Validity Rollups is to enable the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum, allowing for the quick withdrawal of funds.'
SentenceWindowRetrieverPack
SentenceWindowRetrieverPack은 문서를 로드하고, 청크로 묶고, 각 청크에 메타데이터로 주변 컨텍스트를 추가하고, 검색 중에 응답 합성을 위해 각 청크에 컨텍스트를 다시 삽입합니다.
'The goal of Validity Rollups is to enable the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum, allowing for the quick withdrawal of funds.'
response
Response(response='The goal of Validity Rollups is to enable the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum, allowing for the quick withdrawal of funds.', source_nodes=[NodeWithScore(node=TextNode(id_='960bba74-4039-4cce-b62b-a89764a6bced', embedding=None, metadata={'page_label': '3', 'file_name': 'Analysis_and_Comparison_between_Optimism_and_StarkNet.pdf'},
RecursiveRetrieverSmallToBigPack
RecursiveRetrieverSmallToBigPack은 문서를 로드하고 계층적 노드 그래프(더 큰 부모 노드와 더 작은 자식 노드)를 작성합니다.
'The goal of Validity Rollups is to enable the finalization of withdrawals on Layer 1 as soon as the validity proof of the new state root is accepted on Ethereum, allowing for the quick withdrawal of funds.'
LLamaPack 모듈의 개별적 사용
Packe에 포함된 모듈을 가져와서 개별적으로 사용할 수 있습니다.
# get the sentence vector index
index = sentence_window_retriever_pack.sentence_index
# get the node parser
node_parser = sentence_window_retriever_pack.node_parser
# get the metadata replacement postprocessor
postprocessor = sentence_window_retriever_pack.postprocessor
# get the query engine
query_engine = sentence_window_retriever_pack.query_engine