Skip to content

Commit

Permalink
Merge branch 'main' into remove_dynamic_prompt_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnah199 authored Aug 2, 2024
2 parents 7e091da + 7fbc706 commit dc6501c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: hatch run lint:all

- name: Run ElasticSearch container
run: docker-compose up -d
run: docker compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: hatch run lint:all

- name: Run opensearch container
run: docker-compose up -d
run: docker compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weaviate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: hatch run lint:all

- name: Run Weaviate container
run: docker-compose up -d
run: docker compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def __init__(
msg = f'Invalid collection name: "{collection_name}". It can only contain letters, numbers, -, or _.'
raise ValueError(msg)

self.resolved_connection_string = mongo_connection_string.resolve_value()
self.mongo_connection_string = mongo_connection_string

self.database_name = database_name
Expand All @@ -95,7 +94,7 @@ def __init__(
def connection(self) -> MongoClient:
if self._connection is None:
self._connection = MongoClient(
self.resolved_connection_string, driver=DriverInfo(name="MongoDBAtlasHaystackIntegration")
self.mongo_connection_string.resolve_value(), driver=DriverInfo(name="MongoDBAtlasHaystackIntegration")
)

return self._connection
Expand Down

0 comments on commit dc6501c

Please sign in to comment.