MCPcopy Create free account

hub / github.com/EpistasisLab/KRAGEN / functions

Functions304 in github.com/EpistasisLab/KRAGEN

↓ 21 callersMethodexecute
Execute the operation, assuring that all predecessors have been executed. :param lm: The language model to be used. :type lm
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:101
↓ 19 callersFunctionget_db
()
KRAGEN_Dashboard/Backend/ExecGPTServer/db/db.py:7
↓ 16 callersFunctionsavedChatIDs
()
KRAGEN_Dashboard/Frontend/src/components/apiService.js:7
↓ 13 callersMethodget_thoughts
Returns the thoughts associated with the operation. :return: List of scored thoughts. :rtype: List[Thought]
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:188
↓ 9 callersMethodget_previous_thoughts
Iterates over all predecessors and aggregates their thoughts. :return: A list of all thoughts from the predecessors. :rtype:
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:66
↓ 8 callersMethod__init__
Initializes a new Score operation. :param num_samples: Number of samples to use for scoring. Defaults to 1. :type num_sample
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:161
↓ 7 callersMethodfrom_thought
Creates a new thought from an existing one. :param thought: An instance of a Thought to clone. :return: A new Thought instan
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/thought.py:40
↓ 7 callersFunctiongetChatMessageByExperimentId
(current_chatTapID)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:110
↓ 7 callersMethodget_response_texts
Extract the response texts from the query response. :param query_response: The response dictionary (or list of dictionaries) from th
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/chatgpt.py:143
↓ 7 callersMethodquery
Query the OpenAI model for responses. :param query: The query to be posed to the language model. :type query: str :p
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/chatgpt.py:66
↓ 7 callersFunctionstrip_answer_helper
Helper function to remove tags from a text. :param text: The input text. :type text: str :param tag: The tag to be stripped. Default
KRAGEN_Dashboard/Backend/got.py:14
↓ 6 callersFunctionsetTapTitlesFunc
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:500
↓ 5 callersFunctionconvert_relation
(relation)
src/convert.py:119
↓ 5 callersFunctionpostInChatlogsToDB
(chat_id, message, message_type, who)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:83
↓ 3 callersMethodadd_successor
Add a succeeding operation and update the relationships. :param operation: The operation to be set as a successor. :type ope
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:91
↓ 3 callersMethodcan_be_executed
Checks if the operation can be executed based on its predecessors. :return: True if all predecessors have been executed, False other
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:57
↓ 3 callersFunctioncheckClickedChatboxTab
(e)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:419
↓ 3 callersFunctioncreateChatID
()
KRAGEN_Dashboard/Frontend/src/components/apiService.js:517
↓ 3 callersFunctiongetAllChatsFromDB
(current_chatTapID)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:27
↓ 3 callersFunctionget_client
(url=weaviate_url)
src/upload.py:19
↓ 3 callersFunctionget_embedding
(text, engine="text-embedding-3-small")
src/make_vector.py:42
↓ 3 callersMethodget_embedding
(self, text_to_embed)
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/chatgpt.py:162
↓ 3 callersMethodget_knowledge
(self,embedded_question, max_tokens=4000, max_distance = 0.3, min_score = 0.001, keyword_filter='')
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/vector_db/weaviate.py:106
↓ 3 callersMethodget_models
(self)
KRAGEN_Dashboard/Backend/ExecGPTServer/notused/aiconn.py:59
↓ 2 callersMethodadd_predecessor
Add a preceding operation and update the relationships. :param operation: The operation to be set as a predecessor. :type op
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:81
↓ 2 callersFunctionchangePenToCheck
(node, reverse)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:565
↓ 2 callersFunctionchangeTrashToCheck
(node, reverse)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:539
↓ 2 callersMethodchat
Send chat messages to the OpenAI model and retrieves the model's response. Implements backoff on OpenAI error. :param messag
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/chatgpt.py:108
↓ 2 callersMethodchat
Send chat messages to the OpenAI model and retrieves the model's response. Implements backoff on OpenAI error. :param messag
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/azuregpt.py:110
↓ 2 callersFunctioncheckNumChatBox
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:60
↓ 2 callersFunctionconfig
(input_file)
src/config.py:4
↓ 2 callersFunctionconfig_backend
(service='chatgpt')
src/k_setup.py:88
↓ 2 callersMethodconnect
(self)
KRAGEN_Dashboard/Backend/ExecGPTServer/notused/aiconn.py:24
↓ 2 callersMethodextract_details
(self, question_type: str, question: str )
KRAGEN_Dashboard/Backend/got.py:351
↓ 2 callersFunctionfetchData
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:101
↓ 2 callersFunctiongetMouseLayer
()
KRAGEN_Dashboard/Frontend/src/components/DisplayGraph/GraphEventsController.tsx:4
↓ 2 callersFunctiongetSpecificChatTitlebyChatId
(current_chatTapID)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:593
↓ 2 callersFunctionget_openai_connection
()
KRAGEN_Dashboard/Backend/ExecGPTServer/server.py:20
↓ 2 callersMethodimprove_prompt
Generate an improve prompt for the language model. The thought state is unpacked to allow for additional keyword arguments an
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/prompter/prompter.py:34
↓ 2 callersMethodparse_improve_answer
Parse the response from the language model for an improve prompt. :param state: The thought state used to generate the prompt.
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/parser/parser.py:37
↓ 2 callersMethodparse_score_answer
Parse the response from the language model for a score prompt. :param states: The thought states used to generate the prompt.
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/parser/parser.py:79
↓ 2 callersFunctionpostChatNameToDB
(chatboxtapname, chattabid)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:718
↓ 2 callersFunctionprettyPercentage
(val: number)
KRAGEN_Dashboard/Frontend/src/components/DisplayGraph/GraphTitle.tsx:6
↓ 2 callersFunctionprompt
(msg)
src/k_setup.py:83
↓ 2 callersMethodquery_near_vector
(self, properties=["knowledge"], near_vector={}, additional="score", limit=3)
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/vector_db/weaviate.py:80
↓ 2 callersFunctionread_json
(filename='config/class.json')
src/upload.py:113
↓ 2 callersMethodrun
Run the controller and execute the operations from the Graph of Operations based on their readiness. Ensures the program is i
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/controller/controller.py:56
↓ 2 callersMethodscore_prompt
Generate a score prompt for the language model. :param state_dicts: The thought states that should be scored,
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/prompter/prompter.py:75
↓ 2 callersFunctionsetBoldUnderlineAndInitTraIc
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:70
↓ 2 callersFunctionupdateChatTitleByChatId
(chatId, newTitle)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:616
↓ 1 callersMethod_execute
Abstract method for the actual execution of the operation. This should be implemented in derived classes. :param lm: The lan
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:125
↓ 1 callersFunctionadd_object
(class_name, obj)
src/upload.py:53
↓ 1 callersMethodaggregation_prompt
Generate a aggregation prompt for the language model. :param state_dicts: The thought states that should be aggregated. :typ
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/prompter/prompter.py:21
↓ 1 callersMethodappend_operation
Appends an operation to all leaves in the graph and updates the relationships. :param operation: The operation to append. :t
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/graph_of_operations.py:30
↓ 1 callersFunctionbatch_load_csv
(class_name, csv_filename)
src/upload.py:79
↓ 1 callersMethodchat_completions
(self, req)
KRAGEN_Dashboard/Backend/ExecGPTServer/notused/aiconn.py:69
↓ 1 callersFunctioncheckNumChatBox
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:529
↓ 1 callersMethodcheck_connection
(self)
KRAGEN_Dashboard/Backend/ExecGPTServer/notused/aiconn.py:43
↓ 1 callersFunctionclearAllCheckIcons
(nodes)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:518
↓ 1 callersFunctionclearAllTrashIcons
(nodes)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:490
↓ 1 callersFunctionconvert_csv
(ddf, config)
src/convert.py:20
↓ 1 callersFunctioncosine_similarity
(a, b)
src/make_vector.py:39
↓ 1 callersFunctioncreate_class
()
src/upload.py:36
↓ 1 callersFunctiondeleteSpecificChat
(current_chatTapID)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:57
↓ 1 callersFunctiondelete_chatlogs_by_chat_id
(chat_id)
KRAGEN_Dashboard/Backend/ExecGPTServer/utils/chat_util.py:202
↓ 1 callersMethoddisconnect
(self)
KRAGEN_Dashboard/Backend/ExecGPTServer/notused/aiconn.py:38
↓ 1 callersFunctiondrawHover
(context: CanvasRenderingContext2D, data: PlainObject, settings: PlainObject)
KRAGEN_Dashboard/Frontend/src/components/DisplayGraph/others/canvas-utils.ts:34
↓ 1 callersFunctiondrawRoundRect
( ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: numb
KRAGEN_Dashboard/Frontend/src/components/DisplayGraph/others/canvas-utils.ts:10
↓ 1 callersFunctionencodeSpecialCharacters
(question)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:449
↓ 1 callersFunctionfetchData
(endpoint, method, body = null)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:30
↓ 1 callersFunctionfetchData
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/useChatData.js:10
↓ 1 callersFunctionfetchData
()
KRAGEN_Dashboard/Frontend/src/components/DisplayGraph/index.tsx:152
↓ 1 callersMethodgenerate_prompt
Generate a generate prompt for the language model. The thought state is unpacked to allow for additional keyword arguments an
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/prompter/prompter.py:47
↓ 1 callersFunctiongenerate_relationship_dataset
(df)
src/convert.py:134
↓ 1 callersFunctiongenerate_unique_node_dataset
(unique_nodes)
src/convert.py:68
↓ 1 callersFunctiongetAllChatsAndGetSpecificChatBasedOnExpID
( clickedChatBoxNum, // "+ New Chat" or real chat id // countClickedChatBoxID, // total number of chat
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:346
↓ 1 callersFunctiongetAllChatsFromDBFilterbyExpIdSetChatbox
( current_chatTapID, countofchatids )
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:352
↓ 1 callersMethodget_best_n
Returns the best N thoughts from the predecessors based on their score. :return: List of best N thoughts. :rtype: List[Thoug
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/operations/operations.py:700
↓ 1 callersMethodget_client
(self)
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/vector_db/weaviate.py:38
↓ 1 callersFunctionget_unique_nodes
Extracts unique nodes from a Dask DataFrame. Args: ddf (dd.DataFrame): The Dask DataFrame to process. Returns: dd.DataFrame:
src/convert.py:40
↓ 1 callersFunctiongot_dynamic
Generates the Graph of Operations for the IO method. :return: Graph of Operations :rtype: GraphOfOperations
KRAGEN_Dashboard/Backend/ExecGPTServer/api/chatapi.py:146
↓ 1 callersFunctionhandleSubmit
(e)
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/index.js:408
↓ 1 callersFunctioninit_db
()
KRAGEN_Dashboard/Backend/ExecGPTServer/db/db.py:25
↓ 1 callersFunctioninitailChatBoxSetting
(current_chatTapID)
KRAGEN_Dashboard/Frontend/src/components/apiService.js:503
↓ 1 callersMethodload_config
Load configuration from a specified path. :param path: Path to the config file. If an empty path provided, defa
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/vector_db/weaviate.py:22
↓ 1 callersMethodload_config
Load configuration from a specified path. :param path: Path to the config file. If an empty path provided, defa
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/language_models/abstract_language_model.py:45
↓ 1 callersFunctionmain
()
KRAGEN_Dashboard/Backend/execgpt.py:5
↓ 1 callersFunctionmain
()
src/kragen.py:16
↓ 1 callersFunctionmain
()
src/make_vector.py:169
↓ 1 callersFunctionmain
()
src/parse.py:13
↓ 1 callersFunctionmain
()
src/addTokenInfo.py:22
↓ 1 callersFunctionmakeTextareaEditable
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:163
↓ 1 callersFunctionmakeTextareaReadOnly
()
KRAGEN_Dashboard/Frontend/src/components/ChatGPTForKRAGENLoc/SideMenu.js:170
↓ 1 callersFunctionmk_dir
(directory)
src/convert.py:9
↓ 1 callersMethodparse_aggregation_answer
Parse the response from the language model for a aggregation prompt. :param states: The thought states used to generate the prompt.
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/parser/parser.py:21
↓ 1 callersMethodparse_generate_answer
Parse the response from the language model for a generate prompt. :param state: The thought state used to generate the prompt.
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/parser/parser.py:51
↓ 1 callersMethodparse_validation_answer
Parse the response from the language model for a validation prompt. :param state: The thought state used to generate the prompt.
KRAGEN_Dashboard/Backend/graph_of_thoughts/graph_of_thoughts/parser/parser.py:65
↓ 1 callersFunctionpatchSpecificChat
( current_chatTapID, title // experiment_id, // dataset_id )
KRAGEN_Dashboard/Frontend/src/components/apiService.js:693
↓ 1 callersFunctionprocess_all_csv_files
(directory)
src/make_vector.py:103
↓ 1 callersFunctionprocess_directory
(class_name, dir_path=os.getcwd())
src/upload.py:92
next →1–100 of 304, ranked by callers