cognee/examples/python
Vasilije 235f28aefe
refactor: Rework limit=0 for vector adapters (#1450)
<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->
Until now, limit=0 in vector search meant that there is no limit and we
should return everything. This caused confusion and errors, so now it is
reworked so that limit=None means no limit on the search. If someone
puts limit=0, there will be no results returned, as it makes more sense
and is less error prone.

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [x] **I have tested my changes thoroughly before submitting this PR**
- [x] **This PR contains minimal changes necessary to address the
issue/feature**
- [x] My code follows the project's coding standards and style
guidelines
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
2025-09-25 21:13:41 +02:00
..
ontology_input_example Feat: Adds ontology scientific paper demo (#662) 2025-03-25 17:21:29 +01:00
agentic_reasoning_procurement_example.py feat: Cog 2082 add BAML to cognee (#1054) 2025-08-06 10:41:47 +02:00
code_graph_example.py Jspv structlog auto config fix (#907) 2025-06-11 09:26:23 -04:00
cognee_simple_document_demo.py refactor: Change limit=0 to limit=None in vector search. Initial commit, still wip. 2025-09-19 12:31:25 +02:00
dynamic_multiple_edges_example.py feat: dynamic multiple edges in datapoints (#1212) 2025-08-07 14:50:45 +02:00
dynamic_steps_example.py Jspv structlog auto config fix (#907) 2025-06-11 09:26:23 -04:00
graphiti_example.py feat: implement combined context search (#1341) 2025-09-10 16:33:08 +02:00
memify_coding_agent_example.py test: Update memify test with backwards compatible search 2025-09-11 21:28:09 +02:00
multimedia_example.py Jspv structlog auto config fix (#907) 2025-06-11 09:26:23 -04:00
ontology_demo_example.py feat: adds new config structure based on requirements 2025-09-18 17:24:23 +02:00
ontology_demo_example_2.py feat: adds new config structure based on requirements 2025-09-18 17:24:23 +02:00
relational_database_migration_example.py refactor: Update rel db example (#985) 2025-06-13 18:33:40 +02:00
simple_example.py Jspv structlog auto config fix (#907) 2025-06-11 09:26:23 -04:00
simple_node_set_example.py Jspv structlog auto config fix (#907) 2025-06-11 09:26:23 -04:00
temporal_example.py chore: adds docstrings 2025-08-29 16:07:18 +02:00
weighted_edges_example.py feat: Weighted edges (#1068) 2025-07-14 21:26:25 +02:00
weighted_graph_visualization.html added fix to weighted edges 2025-08-02 21:09:58 +02:00