Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YZ-Cai/SimGRAG
/ functions
Functions
45 in github.com/YZ-Cai/SimGRAG
⨍
Functions
45
◇
Types & classes
9
↓ 9 callers
Method
chat
(self, input_text)
src/llm.py:14
↓ 9 callers
Method
count
(self)
src/vecdb.py:102
↓ 9 callers
Method
get
(self)
src/utils.py:26
↓ 6 callers
Method
get_KG
(self)
src/dataset.py:24
↓ 5 callers
Method
encode
(self, texts, batch_size=64, show_progress_bar=False)
src/embedding_model.py:11
↓ 4 callers
Function
check_answer
(answer, groundtruths)
src/utils.py:53
↓ 4 callers
Function
extract_graph
(llm_output)
src/utils.py:5
↓ 4 callers
Method
get_groundtruths
(self)
src/dataset.py:33
↓ 4 callers
Method
get_queries
(self)
src/dataset.py:30
↓ 4 callers
Method
retrieve
(self, query_graph, mode='greedy')
src/retriever.py:63
↓ 4 callers
Method
search
data = [ [0] *768, [1] *768, ]
src/vecdb.py:66
↓ 3 callers
Method
insert
data = [ {"id": 0, "vector": [0.1]*768, "name": "test0"}, {"id": 1, "vector": [0.2]*768, "name": "test1"}, ]
src/vecdb.py:54
↓ 3 callers
Method
reset
(self)
src/vecdb.py:110
↓ 2 callers
Method
_load
(self)
src/vecdb.py:11
↓ 2 callers
Method
add
(self, score, graph, reuse_nodes)
src/utils.py:19
↓ 2 callers
Method
build_index
(self, KG, type_to_nodes=None)
src/indexer.py:13
↓ 2 callers
Method
get_type_to_nodes
(self)
src/dataset.py:27
↓ 1 callers
Method
__init__
(self, configs)
src/dataset.py:38
↓ 1 callers
Method
_dfs_all_edges
(self, Q, node, visited_edges)
src/retriever.py:53
↓ 1 callers
Method
_load_data
(self)
src/dataset.py:21
↓ 1 callers
Method
match
(cur_Q_idx, node_matching, matched_KG_edges, cur_score, reuse_nodes)
src/retriever.py:175
↓ 1 callers
Method
max_score
(self)
src/utils.py:47
↓ 1 callers
Function
run
(query, groundtruths)
pipeline/FactKG_query.py:33
↓ 1 callers
Function
run
(query, groundtruths)
pipeline/metaQA_query2hop.py:32
↓ 1 callers
Function
run
(query, groundtruths)
pipeline/metaQA_query3hop.py:32
↓ 1 callers
Function
run
(query, groundtruths)
pipeline/metaQA_query1hop.py:32
Method
__init__
(self, configs)
src/llm.py:5
Method
__init__
(self, name)
src/vecdb.py:6
Method
__init__
(self, configs)
src/embedding_model.py:5
Method
__init__
(self, configs, KG, type_to_nodes=None)
src/retriever.py:27
Method
__init__
(self, configs)
src/indexer.py:9
Method
__init__
(self, k)
src/utils.py:15
Method
__init__
(self, configs)
src/dataset.py:17
Method
__init__
(self, configs)
src/dataset.py:92
Method
_load_data
(self)
src/dataset.py:42
Method
_load_data
(self)
src/dataset.py:95
Function
get
(query, shot=12)
prompts/rewrite_metaQA.py:125
Function
get
(query, shot=12)
prompts/rewrite_FactKG.py:127
Function
get
(query, evidences, shot=12)
prompts/answer_FactKG.py:165
Function
get
(query, evidences, shot=12)
prompts/answer_metaQA.py:192
Method
get
ids = [0, 1]
src/vecdb.py:88
Method
process_entity_batch
(start, end)
src/dataset.py:112
Method
search_node_vectors
()
src/retriever.py:115
Method
search_relation_vectors
()
src/retriever.py:121
Method
search_type_vectors
()
src/retriever.py:131