Commit graph

2803 commits

Author SHA1 Message Date
Igor Ilic
a7f51c8ce9 fix: Resolve BAML test issue 2025-08-05 21:01:50 +02:00
Igor Ilic
bffb38640b docs: Add type hints for LLMAdapter 2025-08-05 20:40:28 +02:00
Igor Ilic
19f424354f docs: Update docs 2025-08-05 20:30:21 +02:00
Igor Ilic
9b84a4b3fc docs: Add structured outputs to .env.template 2025-08-05 20:29:18 +02:00
Igor Ilic
f586bc6f7f fix: Resolve baml import issue 2025-08-05 20:27:25 +02:00
Igor Ilic
b076078e4f fix: Resolve issue with LLMAdapter calling wrong method 2025-08-05 20:25:42 +02:00
Igor Ilic
6f8c4205c5 refactor: Rename llitellm_instructor to litellm_instructor 2025-08-05 20:23:50 +02:00
Igor Ilic
1fd4c4fa8b refactor: Return neptune analytics to get graph engine 2025-08-05 19:31:30 +02:00
Igor Ilic
a09d2d0b3c Merge branch 'dev' into COG-2082 2025-08-05 19:15:03 +02:00
Igor Ilic
15625efd08 Merge branch 'main' into COG-2082 2025-08-05 19:14:24 +02:00
Igor Ilic
8af8424b8d refactor: Move structured_output out of base config 2025-08-05 19:08:18 +02:00
Igor Ilic
cb21e08ad9 refactor: move prompts to LLM folder 2025-08-05 19:06:40 +02:00
Igor Ilic
7761b70229 feat: Add adapter for structured output and LLM usage 2025-08-05 18:49:32 +02:00
Igor Ilic
8d4ed35cbe
Fix low level pipeline (#1203)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-05 17:01:48 +02:00
Igor Ilic
ba624660b9
Merge main vol 4 (#1201)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-05 12:55:45 +02:00
Igor Ilic
d237b806f9
Merge branch 'dev' into merge-main-vol-4 2025-08-05 12:51:15 +02:00
Igor Ilic
343d990fcc
Merge main vol 4 (#1200)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.

---------

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: vasilije <vas.markovic@gmail.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Co-authored-by: Andy Kwok <andy.kwok@improving.com>
2025-08-05 12:48:24 +02:00
Igor Ilic
ab425e4e18 Merge branch 'main' into merge-main-vol-4 2025-08-05 11:49:55 +02:00
vasilije
11422f362f fixes to formatting 2025-08-05 10:12:05 +02:00
Andrew Carbonetto
7d2bf78c81
Add Neptune Analytics hybrid storage (#1156)
<!-- .github/pull_request_template.md -->

## Description
Adds a Neptune Analytics 'hybrid' integration layer to the Cognee.ai
memory storage layer. The following configuration will use Amazon
Neptune Analytics to store all nodes, edges, and vector embeddings for
the Cognee.ai memory conversation.

```
    cognee.config.set_graph_db_config(
        {
            "graph_database_provider": "neptune_analytics",  # Specify Neptune Analytics as provider
            "graph_database_url": graph_endpoint_url,  # Neptune Analytics endpoint with the format neptune-graph://<GRAPH_ID>
        }
    )
    cognee.config.set_vector_db_config(
        {
            "vector_db_provider": "neptune_analytics",  # Specify Neptune Analytics as provider
            "vector_db_url": graph_endpoint_url,  # Neptune Analytics endpoint with the format neptune-graph://<GRAPH_ID>
        }
    )
```

For example, see
[neptune_analytics_example.py](08a3a1d2a8/examples/database_examples/neptune_analytics_example.py)

Related: https://github.com/topoteretes/cognee-starter/pull/11

## 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.

---------

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
Co-authored-by: Andy Kwok <andy.kwok@improving.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
2025-08-05 10:05:31 +02:00
Igor Ilic
b46833b476
Cognee mcp fixes main (#1196)
<!-- .github/pull_request_template.md -->

## Description
Fix Cognee mcp issues

## 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-08-04 15:48:04 +02:00
Igor Ilic
f4a37edc3f
Cognee mcp docker fix (#1195)
<!-- .github/pull_request_template.md -->

## Description
Resolve issues with Cognee MCP docker use

## 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-08-04 12:19:12 +02:00
Vasilije
c686e396f3
fix: Add better docstrings to mcp (#1189)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-04 11:13:28 +02:00
vasilije
df17ae7720 added fix to weighted edges 2025-08-02 21:09:58 +02:00
vasilije
5fcc8b7813 fixes to MCP docker 2025-08-02 19:39:15 +02:00
vasilije
c6e1eb35f7 regen uv lock 2025-08-02 19:26:11 +02:00
Vasilije
10df6c7fab
fix: Update CONTRIBUTING.md (#1187)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-02 19:14:08 +02:00
Vasilije
29c6338647
fix: Update CONTRIBUTING.md (#1186)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-02 17:12:51 +02:00
EricXiao
fc7a91d991
feature: implement FEELING_LUCKY search type (#1178)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
This PR implements the 'FEELING_LUCKY' search type, which intelligently
routes user queries to the most appropriate search retriever, addressing
[#1162](https://github.com/topoteretes/cognee/issues/1162).

- implement new search type FEELING_LUCKY
- Add the select_search_type function to analyze queries and choose the
proper search type
- Integrate with an LLM for intelligent search type determination
- Add logging for the search type selection process
- Support fallback to RAG_COMPLETION when the LLM selection fails
- Add tests for the new search type

## How it works
When a user selects the 'FEELING_LUCKY' search type, the system first
sends their natural language query to an LLM-based classifier. This
classifier analyzes the query's intent (e.g., is it asking for a
relationship, a summary, or a factual answer?) and selects the optimal
SearchType, such as 'INSIGHTS' or 'GRAPH_COMPLETION'. The main search
function then proceeds using this dynamically selected type. If the
classification process fails, it gracefully falls back to the default
'RAG_COMPLETION' type.

## Testing
Tests can be run with:
```bash
python -m pytest cognee/tests/unit/modules/search/search_methods_test.py -k "feeling_lucky" -v
```

## 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.

Signed-off-by: EricXiao <taoiaox@gmail.com>
2025-08-02 16:30:08 +02:00
Igor Ilic
9faa47fc5a
feat: add default tokenizer in case hugging face is not available (#1177)
<!-- .github/pull_request_template.md -->

## Description
Add default tokenizer for custom models not available on HuggingFace

## 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-08-01 16:37:53 +02:00
Vasilije
4324637604
fix: Update Dockerfile (#1176)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-08-01 15:15:13 +02:00
Igor Ilic
5b6e946c43
fix: Add async lock for dynamic vector table creation (#1175)
<!-- .github/pull_request_template.md -->

## Description
Add async lock for dynamic table creation

## 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-08-01 15:12:04 +02:00
Igor Ilic
9ca6750407 refactor: Return tokenizers to previous location 2025-08-01 13:20:26 +02:00
Igor Ilic
fb4bbfec75 chore: remove graphistry, add upper bound 2025-07-30 12:03:19 +02:00
Igor Ilic
8633baa55e refactor: Remove cognee_demo 2025-07-30 12:01:11 +02:00
Igor Ilic
1c0eeaf917 fix: Return add_data_points 2025-07-30 12:00:09 +02:00
Boris Arzentar
cd930ed646
Merge remote-tracking branch 'origin/main' into dev 2025-07-30 11:30:38 +02:00
Boris
2182f619df
fix: canvas resize issues in graph visualization (#1167)
## Description
This PR adds **responsive resizing** to the graph container. The
`ForceGraph` component now dynamically adjusts its width and height when
the browser window is resized, improving the user experience by removing
the need to manually click the "Fit Into View" button. solver issue
#1164

## 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.

---

##  Changes Made (Minimal, Additive Only)

### 1. **Added necessary imports**
```typescript
import { MutableRefObject, useEffect, useImperativeHandle, useRef, useState, useCallback } from "react";
// Added useCallback to existing imports
```

### 2. **Added responsive sizing state and refs**
```typescript
// State for tracking container dimensions
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
const containerRef = useRef<HTMLDivElement>(null);
```

### 3. **Added resize handling logic**
```typescript
// Handle window resize
const handleResize = useCallback(() => {
  if (containerRef.current) {
    const { clientWidth, clientHeight } = containerRef.current;
    setDimensions({ width: clientWidth, height: clientHeight });

    // Trigger graph refresh after resize
    if (graphRef.current) {
      // Small delay to ensure DOM has updated
      setTimeout(() => {
        graphRef.current?.refresh();
      }, 100);
    }
  }
}, []);

// Set up resize observer 
useEffect(() => {
  // Initial size calculation
  handleResize();

  // ResizeObserver for more precise container size tracking
  const resizeObserver = new ResizeObserver(() => {
    handleResize();
  });

  if (containerRef.current) {
    resizeObserver.observe(containerRef.current);
  }

  return () => {
    resizeObserver.disconnect();
  };
}, [handleResize]);
```

### 4. **Added container ref to wrapping div**
```tsx
<div ref={containerRef} className="w-full h-full" id="graph-container">
  {/* Graph component rendered here */}
</div>
```

### 5. **Passed dynamic width/height to ForceGraph**
```tsx
<ForceGraph
  ref={graphRef}
  width={dimensions.width}
  height={dimensions.height}
  dagMode={graphShape as unknown as undefined}
  // ... rest of props unchanged
/>
```

---

you can check this video out:


https://github.com/user-attachments/assets/e8e42c99-23e9-4acd-a51b-c59e8bee7094
2025-07-30 11:16:38 +02:00
VinaySatrasala
a620f991c3 Fix canvas resize issues in graph visualization
Signed-off-by: VinaySatrasala <satrasalavinaykumar.01@gmail.com>
2025-07-30 02:16:09 +05:30
Igor Ilic
35ad60f5ce refactor: Revert .env.template to previous version 2025-07-29 16:48:46 +02:00
Igor Ilic
14ba3e8829
feat: Enable async execution of data items for incremental loading (#1092)
<!-- .github/pull_request_template.md -->

## Description
Attempt at making incremental loading run async

## 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-07-29 10:39:31 -04:00
vasilije
489f2e34f0 fix 2025-07-29 12:44:19 +02:00
hajdul88
f78af0cec3
feature: solve edge embedding duplicates in edge collection + retriever optimization (#1151)
<!-- .github/pull_request_template.md -->

## Description
feature: solve edge embedding duplicates in edge collection + retriever
optimization

## 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.

---------

Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
2025-07-29 12:35:38 +02:00
vasilije
119a6532b0 made sure base tests pass 2025-07-29 09:59:34 +02:00
vasilije
514a37d5f5 added files 2025-07-29 09:49:01 +02:00
Vasilije
190c7eea88
Merge branch 'dev' into COG-2082 2025-07-29 09:39:15 +02:00
Boris
4ea4b100ab
fix: datasets status (#1166)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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-07-28 23:32:40 +02:00
Boris Arzentar
961fa5ec45
chore: update uv.lock file 2025-07-28 23:23:35 +02:00
Boris Arzentar
9793cd56ad
version: 0.2.2.dev0 2025-07-28 23:20:21 +02:00
Boris Arzentar
6773121904
fix: datasets status without datasets parameter 2025-07-28 23:19:36 +02:00