Skip to content

[Bug]: Parameter Dataset in memify #1556

@nauanelinhares

Description

@nauanelinhares

Bug Description

When I set a dataset parameter in memify, even without having done memify on other datasets, it creates the rules for all datasets

Steps to Reproduce

  1. Enrich the database with Cognify but without Memify for multiple datasets.
  2. Add a new dataset, then execute Cognify and Memify.
  3. Afterward, Memify all graphs (not just the specified dataset).

Example:

await cognee.add([data1], dataset_name=dataset1)
await cognee.add([data2], dataset_name=dataset2)
await cognee.add([data3], dataset_name=dataset3)

await cognee.cognify()


await cognee.add([search_query], dataset_name=dataset_name)
await cognee.cognify(datasets=[dataset_name])
await cognee.memify(dataset=dataset_name) # all datasets are processed

Expected Behavior

Only memify to the indicated dataset

Actual Behavior

All datasets are executed for memify operaiton

Environment

  • cognee 0.3.5
  • python 3.11
  • neo4j
  • pgvector

Logs/Error Messages

Additional Context

No response

Pre-submission Checklist

  • I have searched existing issues to ensure this bug hasn't been reported already
  • I have provided a clear and detailed description of the bug
  • I have included steps to reproduce the issue
  • I have included my environment details

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions