Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruvesa committed May 10, 2024
1 parent 958728c commit a86fa65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion course/module-3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local-bytewax: # Run bytewax pipeline
RUST_BACKTRACE=full poetry run python -m bytewax.run data_flow/bytewax_pipeline

generate-dataset: # Generate dataset for finetuning and version it in CometML
poetry run python finetuning/generate_data.py
python finetuning/generate_data.py

local-test-retriever: # Test retriever
poetry run python retriever.py
Expand Down
6 changes: 3 additions & 3 deletions course/module-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ To configure your environment for Qdrant, set the following variables:
- `QDRANT_CLOUD_URL`: The URL for accessing Qdrant Cloud services.
- `QDRANT_APIKEY`: The API key for authenticating with Qdrant Cloud.

Please check this article to learn how to obtain these variables (https://qdrant.tech/documentation/cloud/quickstart-cloud/)
Please check this article to learn how to obtain these variables (https://qdrant.tech/documentation/cloud/quickstart-cloud/?utm_source=decodingml&utm_medium=referral&utm_campaign=llm-course)

Additionally, you can control the connection mode (Cloud or Docker) using a setting in your configuration file. More details can be found in db/qdrant.py :

```python
QDRANT_CLOUD: True # Set to False to use Docker setup
USE_QDRANT_CLOUD: True # Set to False to use Docker setup
```


Expand All @@ -152,7 +152,7 @@ QDRANT_DATABASE_HOST="localhost"
QDRANT_DATABASE_PORT=6333
QDRANT_APIKEY= your-key
QDRANT_CLOUD_URL=your-url
QDRANT_CLOUD=False
USE_QDRANT_CLOUD=False
# MQ config
RABBITMQ_DEFAULT_USERNAME=guest
Expand Down
5 changes: 1 addition & 4 deletions course/module-3/finetuning/generate_data.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import json
import logging
import sys
from pathlib import Path

sys.path.append(str(Path(__file__).resolve().parent.parent))

# sys.path.append(str(Path(__file__).resolve().parent.parent))
from comet_ml import Artifact, Experiment

from db.qdrant import connection as client
Expand Down

0 comments on commit a86fa65

Please sign in to comment.