Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OceanGPT/OceanGPT
/ functions
Functions
23 in github.com/OceanGPT/OceanGPT
⨍
Functions
23
◇
Types & classes
1
↓ 1 callers
Function
clean_response
清理回答中的提示词和文档内容,直接提取Helpful Answer:后的内容
rag.py:212
↓ 1 callers
Function
create_demo
()
app.py:188
↓ 1 callers
Function
extract_text_from_file
(file_path)
app.py:42
↓ 1 callers
Function
get_multi_modal_input
return { "data": image or video, "question": question, }
app.py:89
↓ 1 callers
Function
get_pdf_text
(pdf_docs)
rag.py:149
↓ 1 callers
Function
get_text_chunks
(docs)
rag.py:191
↓ 1 callers
Function
get_vectorstore
获取向量存储,使用本地嵌入模型
rag.py:199
↓ 1 callers
Function
handle_userinput_auto
(user_question)
rag.py:273
↓ 1 callers
Function
load_cached_model
(model_path: str)
rag.py:256
↓ 1 callers
Function
main
()
rag.py:343
↓ 1 callers
Function
run_qwen2_5_vl
(questions: list[str], modality: str)
app.py:72
↓ 1 callers
Function
show_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
Function
apply_image_repeat
Repeats images with provided probability of "image_repeat_prob". Used to simulate hit/miss for the MM preprocessor cache.
app.py:106
Function
chat_qwen
(questions: list[str], llm_file, temperature: float, top_p: float, max_tokens: int)
app.py:56
Function
chat_qwen_coder
(questions: list[str],temperature: float, top_p: float, max_tokens: int)
app.py:65
Function
chat_with_qwenvl
(img_questions,image_path,temperature: float, top_p: float, max_tokens: int)
app.py:136
Function
check_file_size
(file)
app.py:173
Function
clear_history
()
rag.py:389
Function
getSonarClassify
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
Function
getSonarClassify
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