MCPcopy Create free account

hub / github.com/OceanGPT/OceanGPT / functions

Functions23 in github.com/OceanGPT/OceanGPT

↓ 1 callersFunctionclean_response
清理回答中的提示词和文档内容,直接提取Helpful Answer:后的内容
rag.py:212
↓ 1 callersFunctioncreate_demo
()
app.py:188
↓ 1 callersFunctionextract_text_from_file
(file_path)
app.py:42
↓ 1 callersFunctionget_multi_modal_input
return { "data": image or video, "question": question, }
app.py:89
↓ 1 callersFunctionget_pdf_text
(pdf_docs)
rag.py:149
↓ 1 callersFunctionget_text_chunks
(docs)
rag.py:191
↓ 1 callersFunctionget_vectorstore
获取向量存储,使用本地嵌入模型
rag.py:199
↓ 1 callersFunctionhandle_userinput_auto
(user_question)
rag.py:273
↓ 1 callersFunctionload_cached_model
(model_path: str)
rag.py:256
↓ 1 callersFunctionmain
()
rag.py:343
↓ 1 callersFunctionrun_qwen2_5_vl
(questions: list[str], modality: str)
app.py:72
↓ 1 callersFunctionshow_history
()
rag.py:234
Method__init__
(self, tokenizer: Any, model: Any, **kwargs)
rag.py:25
Method_generate
( self, messages: List[BaseMessage], # 修改1: 使用BaseMessage类型 stop: Optional[List[str]]
rag.py:30
Method_llm_type
(self)
rag.py:80
Functionapply_image_repeat
Repeats images with provided probability of "image_repeat_prob". Used to simulate hit/miss for the MM preprocessor cache.
app.py:106
Functionchat_qwen
(questions: list[str], llm_file, temperature: float, top_p: float, max_tokens: int)
app.py:56
Functionchat_qwen_coder
(questions: list[str],temperature: float, top_p: float, max_tokens: int)
app.py:65
Functionchat_with_qwenvl
(img_questions,image_path,temperature: float, top_p: float, max_tokens: int)
app.py:136
Functioncheck_file_size
(file)
app.py:173
Functionclear_history
()
rag.py:389
FunctiongetSonarClassify
Classify sonar image by using the professional Ocean Science Sonar Image Classification Model. Supports both local file path and remote image
mcp_server/oceanserver_remote.py:16
FunctiongetSonarClassify
Classify sonar image by using the professional Ocean Science Sonar Image Classification Model. Supports both local file path and remote image
mcp_server/oceanserver.py:12