Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanGePlus/LightRAGTest
/ functions
Functions
259 in github.com/NanGePlus/LightRAGTest
⨍
Functions
259
◇
Types & classes
26
↳
Endpoints
9
↓ 1 callers
Function
hf_model_if_cache
( model, prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/lightrag/llm.py:235
↓ 1 callers
Function
init
()
LightRAG/examples/lightrag_api_oracle_demo..py:82
↓ 1 callers
Function
initialize_hf_model
(model_name)
LightRAG/lightrag/llm.py:222
↓ 1 callers
Function
initialize_lmdeploy_pipeline
( model, tp=1, chat_template=None, log_level="WARNING", model_format="hf", quant_polic
LightRAG/lightrag/llm.py:333
↓ 1 callers
Method
insert_custom_kg
(self, custom_kg: dict)
LightRAG/lightrag/lightrag.py:310
↓ 1 callers
Function
insert_text
(rag, file_path)
LightRAG/reproduce/Step_1_openai_compatible.py:39
↓ 1 callers
Function
insert_text
(rag, file_path)
LightRAG/reproduce/Step_1.py:8
↓ 1 callers
Function
insert_texts_with_retry
(rag, texts, retries=3, delay=5)
LightRAG/examples/vram_management_demo.py:37
↓ 1 callers
Function
is_float_regex
(value)
LightRAG/lightrag/utils.py:181
↓ 1 callers
Function
kg_query
( query, knowledge_graph_inst: BaseGraphStorage, entities_vdb: BaseVectorStorage, relationship
LightRAG/lightrag/operate.py:434
↓ 1 callers
Function
llm_model_func
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/examples/lightrag_openai_compatible_demo.py:14
↓ 1 callers
Function
llm_model_func
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/examples/lightrag_siliconcloud_demo.py:14
↓ 1 callers
Function
llm_model_func
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/examples/lightrag_azure_openai_demo.py:32
↓ 1 callers
Function
lmdeploy_model_if_cache
Args: model (str): The path to the model. It could be one of the following options: - i) A local director
LightRAG/lightrag/llm.py:356
↓ 1 callers
Function
load_json
(file_name)
LightRAG/lightrag/utils.py:125
↓ 1 callers
Method
load_nx_graph
(file_name)
LightRAG/lightrag/storage.py:172
↓ 1 callers
Function
main
()
LightRAG/lightrag/llm.py:804
↓ 1 callers
Function
main
()
LightRAG/examples/graph_visual_with_neo4j.py:41
↓ 1 callers
Function
main
()
LightRAG/examples/lightrag_oracle_demo.py:59
↓ 1 callers
Function
main
()
LightRAG/examples/lightrag_openai_compatible_demo.py:56
↓ 1 callers
Function
main
()
LightRAG/nangeAGICode1201/graph_visual_with_neo4j.py:43
↓ 1 callers
Function
naive_query
( query, chunks_vdb: BaseVectorStorage, text_chunks_db: BaseKVStorage[TextChunkSchema], query_
LightRAG/lightrag/operate.py:987
↓ 1 callers
Function
ollama_model_if_cache
( model, prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/lightrag/llm.py:300
↓ 1 callers
Function
openai_complete_if_cache
( model="gpt-4o", prompt=None, system_prompt=None, history_messages=[], **kwargs )
LightRAG/reproduce/Step_2.py:6
↓ 1 callers
Function
openai_complete_if_cache
( model="gpt-4o-mini", prompt=None, system_prompt=None, history_messages=[], **kwargs )
LightRAG/examples/generate_query.py:6
↓ 1 callers
Function
process_query
(query_text, rag_instance, query_param)
LightRAG/reproduce/Step_3_openai_compatible.py:51
↓ 1 callers
Function
process_query
(query_text, rag_instance, query_param)
LightRAG/reproduce/Step_3.py:19
↓ 1 callers
Function
read_long_description
()
LightRAG/setup.py:6
↓ 1 callers
Function
read_requirements
()
LightRAG/setup.py:43
↓ 1 callers
Function
retrieve_metadata
()
LightRAG/setup.py:14
↓ 1 callers
Function
run_queries_and_save_to_json
( queries, rag_instance, query_param, output_file, error_file )
LightRAG/reproduce/Step_3_openai_compatible.py:68
↓ 1 callers
Function
run_queries_and_save_to_json
( queries, rag_instance, query_param, output_file, error_file )
LightRAG/reproduce/Step_3.py:36
↓ 1 callers
Function
set_logger
(log_file: str)
LightRAG/lightrag/utils.py:23
↓ 1 callers
Function
siliconcloud_embedding
( texts: list[str], model: str = "netease-youdao/bce-embedding-base_v1", base_url: str = "https://
LightRAG/lightrag/llm.py:593
↓ 1 callers
Function
test_funcs
()
LightRAG/examples/lightrag_siliconcloud_demo.py:38
↓ 1 callers
Function
test_funcs
()
LightRAG/examples/lightrag_azure_openai_demo.py:70
↓ 1 callers
Method
upsert
(self, data: dict[str, dict])
LightRAG/lightrag/storage.py:57
↓ 1 callers
Function
write_json
(json_obj, file_name)
LightRAG/lightrag/utils.py:132
↓ 1 callers
Method
write_nx_graph
(graph: nx.Graph, file_name)
LightRAG/lightrag/storage.py:178
Method
__aexit__
(self, exc_type, exc, tb)
LightRAG/lightrag/kg/neo4j_impl.py:52
Method
__call__
(self, *args, **kwargs)
LightRAG/lightrag/utils.py:44
Method
__init__
(self, models: List[Model])
LightRAG/lightrag/llm.py:777
Method
__init__
(self, namespace, global_config)
LightRAG/lightrag/kg/neo4j_impl.py:30
Method
__init__
(self, config, **kwargs)
LightRAG/lightrag/kg/oracle_impl.py:21
Method
__post_init__
(self)
LightRAG/lightrag/storage.py:27
Method
__post_init__
(self)
LightRAG/lightrag/storage.py:70
Method
__post_init__
(self)
LightRAG/lightrag/storage.py:232
Method
__post_init__
(self)
LightRAG/lightrag/lightrag.py:122
Method
__post_init__
(self)
LightRAG/lightrag/kg/neo4j_impl.py:42
Method
__post_init__
(self)
LightRAG/lightrag/kg/oracle_impl.py:170
Method
__post_init__
(self)
LightRAG/lightrag/kg/oracle_impl.py:292
Method
__post_init__
从graphml文件加载图
LightRAG/lightrag/kg/oracle_impl.py:329
Method
_do_upsert
(tx: AsyncManagedTransaction)
LightRAG/lightrag/kg/neo4j_impl.py:229
Method
_do_upsert_edge
(tx: AsyncManagedTransaction)
LightRAG/lightrag/kg/neo4j_impl.py:272
Method
_get_edge_key
(source: Any, target: Any)
LightRAG/lightrag/storage.py:224
Method
_node2vec_embed
(self)
LightRAG/lightrag/storage.py:300
Method
_node2vec_embed
(self)
LightRAG/lightrag/kg/neo4j_impl.py:293
Method
_node2vec_embed
为节点生成向量
LightRAG/lightrag/kg/oracle_impl.py:417
Method
_sort_source_target
(edge)
LightRAG/lightrag/storage.py:214
Method
all_keys
(self)
LightRAG/lightrag/storage.py:33
Method
all_keys
(self)
LightRAG/lightrag/base.py:67
Function
azure_openai_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/lightrag/llm.py:485
Function
azure_openai_embedding
( texts: list[str], model: str = "text-embedding-3-small", base_url: str = None, api_key: str
LightRAG/lightrag/llm.py:565
Function
bedrock_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/lightrag/llm.py:497
Function
bedrock_embedding
( texts: list[str], model: str = "amazon.titan-embed-text-v2:0", aws_access_key_id=None, aws_s
LightRAG/lightrag/llm.py:632
Method
client_storage
(self)
LightRAG/lightrag/storage.py:129
Function
convert_response_to_json
(response: str)
LightRAG/lightrag/utils.py:74
Method
delete_by_entity
(self, entity_name: str)
LightRAG/lightrag/lightrag.py:448
Method
delete_node
Delete a node from the graph based on the specified node_id. :param node_id: The node_id to delete
LightRAG/lightrag/storage.py:282
Method
drop
(self)
LightRAG/lightrag/storage.py:62
Method
drop
(self)
LightRAG/lightrag/base.py:85
Method
edge_degree
(self, src_id: str, tgt_id: str)
LightRAG/lightrag/storage.py:261
Method
edge_degree
(self, src_id: str, tgt_id: str)
LightRAG/lightrag/kg/neo4j_impl.py:123
Method
edge_degree
根据源和目标节点id获取边的度
LightRAG/lightrag/kg/oracle_impl.py:480
Method
embed_nodes
(self, algorithm: str)
LightRAG/lightrag/storage.py:294
Method
embed_nodes
(self, algorithm: str)
LightRAG/lightrag/base.py:129
Method
embed_nodes
为节点生成向量
LightRAG/lightrag/kg/oracle_impl.py:411
Function
embedding_func
(texts: list[str])
LightRAG/nangeAGICode/test.py:39
Function
embedding_func
(texts: list[str])
LightRAG/reproduce/Step_3_openai_compatible.py:28
Function
embedding_func
(texts: list[str])
LightRAG/reproduce/Step_1_openai_compatible.py:27
Function
embedding_func
(texts: list[str])
LightRAG/nangeAGICode1201/queryTest.py:40
Function
embedding_func
(texts: list[str])
LightRAG/nangeAGICode1201/insertTest.py:41
Method
filter_keys
(self, data: list[str])
LightRAG/lightrag/storage.py:54
Method
filter_keys
过滤掉重复内容
LightRAG/lightrag/kg/oracle_impl.py:206
Function
final_decro
Not using async.Semaphore to aovid use nest-asyncio
LightRAG/lightrag/utils.py:96
Method
get_by_id
(self, id)
LightRAG/lightrag/storage.py:39
Method
get_by_id
根据 id 获取 doc_full 数据.
LightRAG/lightrag/kg/oracle_impl.py:176
Method
get_by_ids
(self, ids, fields=None)
LightRAG/lightrag/storage.py:42
Method
get_by_ids
根据 id 获取 doc_chunks 数据
LightRAG/lightrag/kg/oracle_impl.py:190
Method
get_edge
( self, source_node_id: str, target_node_id: str )
LightRAG/lightrag/storage.py:264
Method
get_edge
( self, source_node_id: str, target_node_id: str )
LightRAG/lightrag/kg/neo4j_impl.py:139
Method
get_edge
根据源和目标节点id获取边
LightRAG/lightrag/kg/oracle_impl.py:500
Method
get_node
(self, node_id: str)
LightRAG/lightrag/storage.py:255
Method
get_node
(self, node_id: str)
LightRAG/lightrag/kg/neo4j_impl.py:89
Method
get_node
根据节点id获取节点数据
LightRAG/lightrag/kg/oracle_impl.py:486
Method
get_node_edges
(self, source_node_id: str)
LightRAG/lightrag/storage.py:269
Method
get_node_edges
(self, source_node_id: str)
LightRAG/lightrag/kg/neo4j_impl.py:175
Method
get_node_edges
根据节点id获取节点的所有边
LightRAG/lightrag/kg/oracle_impl.py:518
Function
gpt_4o_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
LightRAG/lightrag/llm.py:461
Method
has_edge
(self, source_node_id: str, target_node_id: str)
LightRAG/lightrag/storage.py:252
← previous
next →
101–200 of 259, ranked by callers