LLMAgent/ ├── .env ├── pyproject.toml ├── poetry.lock ├── sample_notebook.ipynb └── README.md (optional)
- Open a terminal and create a new directory for your project
- Initialize a new Poetry project
poetry init
- Add Required Dependencies
- poetry add
langchain
- poetry add
python-dotenv
- poetry add
huggingface_hub
- poetry add
googlesearch-results
- poetry add
tiktoken
- poetry add
jupyter
# Required for running .ipynb files
poetry shell
conda --version
poetry export -f requirements.txt --output requirements.txt --without-hashes
conda env list base * /opt/anaconda3 LLMAgentEnv /opt/anaconda3/envs/LLMAgentEnv conda activate LLMAgentEnv
conda env create -n LLMAgentEnv --file /Users/anjandebnath/Documents/PythonWorkspace/LLMAgent/environment.yml
anaconda-navigator
-
poetry install
-
The init.py file tells the Python interpreter to treat a directory as a package, allowing you to import modules from it. Run the ZenMl server
-
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES poetry run zenml up
-
poetry run python run_pipeline.py
-
ETL pipeline: Dashboard URL for Pipeline Run: http://127.0.0.1:8237/projects/default/runs/8ba73d94-532a-4e79-b019-c03d64986f51
-
Stop docker and zenml dashboard after testing