Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekshingadiya authored Oct 9, 2024
2 parents fcd067b + 886e690 commit d447598
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def query(self, query: str, param_map: Optional[Dict[str, Any]] = None) -> Any:
param_map = param_map or {}
try:
data, _, _ = self._driver.execute_query(
query, database=self._database, parameters_=param_map
query, database_=self._database, parameters_=param_map
)
return [r.data() for r in data]
except neo4j.exceptions.Neo4jError as e:
Expand All @@ -276,6 +276,6 @@ def query(self, query: str, param_map: Optional[Dict[str, Any]] = None) -> Any:
):
raise
# Fallback to allow implicit transactions
with self._driver.session() as session:
with self._driver.session(database=self._database) as session:
data = session.run(neo4j.Query(text=query), param_map)
return [r.data() for r in data]
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def structured_query(
param_map = param_map or {}
try:
data, _, _ = self._driver.execute_query(
query, database=self._database, parameters_=param_map
query, database_=self._database, parameters_=param_map
)
full_result = [d.data() for d in data]

Expand All @@ -613,7 +613,7 @@ def structured_query(
):
raise
# Fallback to allow implicit transactions
with self._driver.session() as session:
with self._driver.session(database=self._database) as session:
data = session.run(neo4j.Query(text=query), param_map)
full_result = [d.data() for d in data]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-graph-stores-neo4j"
readme = "README.md"
version = "0.3.2"
version = "0.3.3"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"gpt-4o": 128000,
"gpt-4o-2024-05-13": 128000,
"gpt-4o-2024-08-06": 128000,
# Intended for research and evaluation
"chatgpt-4o-latest": 128000,
"gpt-4o-mini": 128000,
"gpt-4o-mini-2024-07-18": 128000,
# 0613 models (function calling):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-llms-openai"
readme = "README.md"
version = "0.2.12"
version = "0.2.13"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def database_query(
params = params or {}
try:
data, _, _ = self._driver.execute_query(
query, database=self._database, parameters_=params
query, database_=self._database, parameters_=params
)
return [r.data() for r in data]
except neo4j.exceptions.Neo4jError as e:
Expand All @@ -465,7 +465,7 @@ def database_query(
):
raise
# Fallback to allow implicit transactions
with self._driver.session() as session:
with self._driver.session(database=self._database) as session:
data = session.run(neo4j.Query(text=query), params)
return [r.data() for r in data]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-vector-stores-neo4jvector"
readme = "README.md"
version = "0.2.2"
version = "0.2.3"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down

0 comments on commit d447598

Please sign in to comment.