MCPcopy Create free account

hub / github.com/YangLing0818/buffer-of-thought-llm / functions

Functions146 in github.com/YangLing0818/buffer-of-thought-llm

Methodall_keys
(self)
lightrag/base.py:62
Functionazure_openai_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:480
Functionazure_openai_embedding
( texts: list[str], model: str = "text-embedding-3-small", base_url: str = None, api_key: str
lightrag/llm.py:560
Functionbedrock_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:492
Functionbedrock_embedding
( texts: list[str], model: str = "amazon.titan-embed-text-v2:0", aws_access_key_id=None, aws_s
lightrag/llm.py:627
Methodclustering
(self, algorithm: str)
lightrag/base.py:119
Functionconvert_response_to_json
(response: str)
lightrag/utils.py:55
Methoddrop
(self)
lightrag/storage.py:55
Methoddrop
(self)
lightrag/base.py:80
Methodedge_degree
(self, src_id: str, tgt_id: str)
lightrag/storage.py:210
Methodembed_nodes
(self, algorithm: str)
lightrag/storage.py:231
Methodembed_nodes
(self, algorithm: str)
lightrag/base.py:122
Functionextract_answer
(text)
meta_buffer_utilis.py:97
Methodfilter_keys
(self, data: list[str])
lightrag/storage.py:47
Functionfinal_decro
Not using async.Semaphore to aovid use nest-asyncio
lightrag/utils.py:77
Methodget_by_id
(self, id)
lightrag/storage.py:32
Methodget_by_ids
(self, ids, fields=None)
lightrag/storage.py:35
Methodget_edge
( self, source_node_id: str, target_node_id: str )
lightrag/storage.py:213
Methodget_node
(self, node_id: str)
lightrag/storage.py:204
Methodget_node_edges
(self, source_node_id: str)
lightrag/storage.py:218
Functiongpt_4o_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:456
Methodhas_edge
(self, source_node_id: str, target_node_id: str)
lightrag/storage.py:201
Functionhf_embedding
(texts: list[str], tokenizer, embed_model)
lightrag/llm.py:693
Functionhf_model_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:504
Methodindex_done_callback
(self)
lightrag/storage.py:114
Methodindex_done_callback
(self)
lightrag/storage.py:195
Methodindex_done_callback
commit the storage operations after indexing
lightrag/base.py:36
Methodllm_model_func
( self, prompt, system_prompt=None, history_messages=[], **kwargs )
meta_buffer.py:27
Methodllm_model_func
( self, prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:775
Functionlmdeploy_model_if_cache
Args: model (str): The path to the model. It could be one of the following options: - i) A local director
lightrag/llm.py:351
Methodnode_degree
(self, node_id: str)
lightrag/storage.py:207
Functionollama_embedding
(texts: list[str], embed_model)
lightrag/llm.py:703
Functionollama_model_complete
( prompt, system_prompt=None, history_messages=[], **kwargs )
lightrag/llm.py:517
Methodquery
(self, query: str, top_k=5)
lightrag/storage.py:101
Methodquery
(self, query: str, top_k: int)
lightrag/base.py:50
Methodquery_done_callback
commit the storage operations after querying
lightrag/base.py:40
Functionsave_data_to_file
(data, file_name)
lightrag/utils.py:184
Functionsiliconcloud_embedding
( texts: list[str], model: str = "netease-youdao/bce-embedding-base_v1", base_url: str = "https://
lightrag/llm.py:588
Methodstable_largest_connected_component
Refer to https://github.com/microsoft/graphrag/index/graph/utils/stable_lcc.py Return the largest connected component of the graph, with nodes
lightrag/storage.py:134
Methodupsert
(self, data: dict[str, dict])
lightrag/storage.py:75
Methodupsert
Use 'content' field from value for embedding, use key as id. If embedding_func is None, use 'embedding' field from value
lightrag/base.py:53
Methodupsert_edge
( self, source_node_id: str, target_node_id: str, edge_data: dict[str, str] )
lightrag/storage.py:226
Methodupsert_node
(self, node_id: str, node_data: dict[str, str])
lightrag/storage.py:223
Functionwait_func
(*args, **kwargs)
lightrag/utils.py:82
Functionwrap_embedding_func_with_attrs
Wrap a function with attributes
lightrag/utils.py:96
Functionxml_to_json
(xml_file)
lightrag/utils.py:189
← previous101–146 of 146, ranked by callers