-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: llama index #415
feat: llama index #415
Conversation
modelscope_agent/rag/knowledge.py
Outdated
def get_transformations(self, **kwargs) -> Optional[List[TransformComponent]]: | ||
return None | ||
|
||
def get_retriever_tools(self, documents: List[Document], cache_dir: str) -> List[BaseRetriever]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cache_dr: str = None
modelscope_agent/rag/knowledge.py
Outdated
|
||
return retriever_tools | ||
|
||
def get_postprocessors(self, **kwargs) -> BaseNodePostprocessor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this function get object to process?
class DashscopeEmbedding(BaseEmbedding): | ||
"""DashscopeEmbedding uses the dashscope API to generate embeddings for text.""" | ||
|
||
def __init__( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用户如果想要使用其他llama index的embedding的话,有没有快捷的办法,还是说必须要这么一个文件写完才能接入?
modelscope_agent/rag/llm.py
Outdated
|
||
def __init__( | ||
self, | ||
llm: DashScopeLLM, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
support convertible llm
No description provided.