Skip to content

Commit

Permalink
minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
deshraj committed Nov 24, 2023
1 parent 9b46d2c commit bfd2eee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions embedchain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
from embedchain.pipeline import Pipeline # noqa: F401
from embedchain.vectordb.chroma import ChromaDB # noqa: F401

# Setup the user directory if doesn't exist already
Client.setup_dir()
3 changes: 1 addition & 2 deletions embedchain/embedchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
from embedchain.helpers.json_serializable import JSONSerializable
from embedchain.llm.base import BaseLlm
from embedchain.loaders.base_loader import BaseLoader
from embedchain.models.data_type import (DataType, DirectDataType,
IndirectDataType, SpecialDataType)
from embedchain.models.data_type import DataType, DirectDataType, IndirectDataType, SpecialDataType
from embedchain.telemetry.posthog import AnonymousTelemetry
from embedchain.utils import detect_datatype, is_valid_json_string
from embedchain.vectordb.base import BaseVectorDB
Expand Down
4 changes: 4 additions & 0 deletions embedchain/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
from embedchain.vectordb.chroma import ChromaDB


# Setup the user directory if doesn't exist already
Client.setup_dir()


@register_deserializable
class Pipeline(EmbedChain):
"""
Expand Down
5 changes: 4 additions & 1 deletion embedchain/store/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from openai import OpenAI
from openai.types.beta.threads import MessageContentText, ThreadMessage

from embedchain import Pipeline
from embedchain import Client, Pipeline
from embedchain.config import AddConfig
from embedchain.data_formatter import DataFormatter
from embedchain.models.data_type import DataType
Expand All @@ -19,6 +19,9 @@

logging.basicConfig(level=logging.WARN)

# Setup the user directory if doesn't exist already
Client.setup_dir()


class OpenAIAssistant:
def __init__(
Expand Down

0 comments on commit bfd2eee

Please sign in to comment.