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

Fix: Pydantic warning in chroma store, Lock the numpy version to Major 1 #98

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions agentuniverse/agent/action/knowledge/store/chroma_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
# @Email : wangchongshi.wcs@antgroup.com
# @FileName: chroma_store.py
from typing import List, Any, Optional
from pydantic import SkipValidation

import chromadb
from chromadb import QueryResult
from chromadb.api.models import Collection
from chromadb.api.models.Collection import Collection

from agentuniverse.agent.action.knowledge.store.document import Document
from agentuniverse.agent.action.knowledge.store.query import Query
Expand All @@ -28,7 +29,7 @@ class ChromaStore(Store):
"""

collection_name: Optional[str] = 'chroma_db'
collection: Collection = None
collection: SkipValidation[Collection] = None
persist_path: Optional[str] = None

def __init__(self, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dashscope = "^1.19.1"
anthropic = "^0.26.0"
ollama = '^0.2.1'
langchain-anthropic = '^0.1.13'
numpy = '^1.26.0'

[tool.poetry.extras]
log_ext = ["aliyun-log-python-sdk"]
Expand Down
2 changes: 1 addition & 1 deletion sample_standard_app/config/gunicorn_config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[GUNICORN_CONFIG]
bind = '127.0.0.1:8888'
bind = '0.0.0.0:8888'
backlog = 2048
worker_class = 'gthread'
threads = 4
Expand Down