Skip to content
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

[Feature] [GraphRAG] milvus_store did not provide truncate() #2321

Open
4 of 15 tasks
xuxl2024 opened this issue Jan 23, 2025 · 5 comments
Open
4 of 15 tasks

[Feature] [GraphRAG] milvus_store did not provide truncate() #2321

xuxl2024 opened this issue Jan 23, 2025 · 5 comments
Labels
bug Something isn't working Waiting for reply

Comments

@xuxl2024
Copy link

xuxl2024 commented Jan 23, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

GPU
GPU Count:1
gpu memory:24G

Models information

LLM_MODEL: qwen2.5-7b-instruct
EMBEDDING_MODEL:m3e-base

What happened

构建社区摘要时(community_store.py中的build_communities方法),先清空向量存储,仅提供了ChromaStore对于实现truncate方法,未提供MilvusStore对于该方法的实现,当使用milvus作为向量数据库时会抛出错误“NotImplementedError”

What you expected to happen

提供一种实现

def truncate(self):
        """Drop milvus collection.
        """
        logger.info(f"begin truncate milvus collection:{self.collection_name}")
        from pymilvus import utility
        if utility.has_collection(self.collection_name):
            utility.drop_collection(self.collection_name)

        logger.info(
            f"truncate milvus collection {self.collection_name} success"
        )

How to reproduce

1.构建一个知识图谱类型的知识库;
2.上传一个文件;
3.选择上传的文件,点击"同步"

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@xuxl2024 xuxl2024 added bug Something isn't working Waiting for reply labels Jan 23, 2025
@xuxl2024 xuxl2024 changed the title [Bug] [GraphRAG] milvus_store未提供truncate方法的实现 [Feature] [GraphRAG] milvus_store未提供truncate方法的实现 Jan 23, 2025
@Aries-ckt
Copy link
Collaborator

sorry about that, we will fix in version v0.7.0, but you can also submit pr to solve that.

@Aries-ckt Aries-ckt changed the title [Feature] [GraphRAG] milvus_store未提供truncate方法的实现 [Feature] [GraphRAG] milvus_store did not provide truncate() Jan 23, 2025
@xuxl2024
Copy link
Author

sorry about that, we will fix in version v0.7.0, but you can also submit pr to solve that.

fatal: unable to access 'https://github.com/eosphoros-ai/DB-GPT.git/': The requested URL returned error: 403

@Aries-ckt
Copy link
Collaborator

network problem? try again ? or use vpn?

@xuxl2024
Copy link
Author

network problem? try again ? or use vpn?

I guess it's because my account doesn't have the permission to push code?

@edwardzjl
Copy link

permission

You need to first fork this repo, commit your changes to your forked-repo, and then make PRs to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

3 participants