Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia committed Dec 4, 2024
1 parent 27eae8f commit 96451c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Next

### Fixed
- IDs for the Document and Chunk nodes in the lexical graph are now randomly generated and unique across multiple runs, fixing issues in the lexical graph where relationships where created between chunks that were created by different pipeline runs.
- IDs for the Document and Chunk nodes in the lexical graph are now randomly generated and unique across multiple runs, fixing issues in the lexical graph where relationships were created between chunks that were created by different pipeline runs.

### Changed
- The `id_prefix` parameter in the `LexicalGraphConfig` is deprecated.
Expand Down
4 changes: 2 additions & 2 deletions src/neo4j_graphrag/experimental/components/lexical_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import asyncio
import datetime
import logging
from datetime import datetime
from itertools import zip_longest
from typing import Any, Dict, Optional

Expand Down Expand Up @@ -112,7 +112,7 @@ def create_document_node(self, document_info: DocumentInfo) -> Neo4jNode:
label=self.config.document_node_label,
properties={
"path": document_info.path,
"createdAt": str(datetime.now()),
"createdAt": datetime.datetime.now(datetime.timezone.utc).isoformat(),
**document_metadata,
},
)
Expand Down

0 comments on commit 96451c5

Please sign in to comment.