Skip to content

Commit e934f80

Browse files
authored
Merge branch 'main' into feature/web_scraping_connector_task
2 parents a9d410e + 760a9de commit e934f80

File tree

159 files changed

+5133
-5013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+5133
-5013
lines changed

.env.template

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
STRUCTURED_OUTPUT_FRAMEWORK="instructor"
1717

1818
LLM_API_KEY="your_api_key"
19-
LLM_MODEL="openai/gpt-4o-mini"
19+
LLM_MODEL="openai/gpt-5-mini"
2020
LLM_PROVIDER="openai"
2121
LLM_ENDPOINT=""
2222
LLM_API_VERSION=""
@@ -30,10 +30,13 @@ EMBEDDING_DIMENSIONS=3072
3030
EMBEDDING_MAX_TOKENS=8191
3131
# If embedding key is not provided same key set for LLM_API_KEY will be used
3232
#EMBEDDING_API_KEY="your_api_key"
33+
# Note: OpenAI support up to 2048 elements and Gemini supports a maximum of 100 elements in an embedding batch,
34+
# Cognee sets the optimal batch size for OpenAI and Gemini, but a custom size can be defined if necessary for other models
35+
#EMBEDDING_BATCH_SIZE=2048
3336

3437
# If using BAML structured output these env variables will be used
3538
BAML_LLM_PROVIDER=openai
36-
BAML_LLM_MODEL="gpt-4o-mini"
39+
BAML_LLM_MODEL="gpt-5-mini"
3740
BAML_LLM_ENDPOINT=""
3841
BAML_LLM_API_KEY="your_api_key"
3942
BAML_LLM_API_VERSION=""
@@ -52,18 +55,18 @@ BAML_LLM_API_VERSION=""
5255
################################################################################
5356
# Configure storage backend (local filesystem or S3)
5457
# STORAGE_BACKEND="local" # Default: uses local filesystem
55-
#
58+
#
5659
# -- To switch to S3 storage, uncomment and fill these: ---------------------
5760
# STORAGE_BACKEND="s3"
5861
# STORAGE_BUCKET_NAME="your-bucket-name"
5962
# AWS_REGION="us-east-1"
6063
# AWS_ACCESS_KEY_ID="your-access-key"
6164
# AWS_SECRET_ACCESS_KEY="your-secret-key"
62-
#
65+
#
6366
# -- S3 Root Directories (optional) -----------------------------------------
6467
# DATA_ROOT_DIRECTORY="s3://your-bucket/cognee/data"
6568
# SYSTEM_ROOT_DIRECTORY="s3://your-bucket/cognee/system"
66-
#
69+
#
6770
# -- Cache Directory (auto-configured for S3) -------------------------------
6871
# When STORAGE_BACKEND=s3, cache automatically uses S3: s3://BUCKET/cognee/cache
6972
# To override the automatic S3 cache location, uncomment:
@@ -176,7 +179,14 @@ ENABLE_BACKEND_ACCESS_CONTROL=False
176179

177180
# Cognee Cloud API settings for syncing data to/from cloud infrastructure
178181
COGNEE_CLOUD_API_URL="http://localhost:8001"
179-
COGNEE_CLOUD_AUTH_TOKEN="your-auth-token"
182+
COGNEE_CLOUD_AUTH_TOKEN="your-api-key"
183+
184+
################################################################################
185+
# UI Settings
186+
################################################################################
187+
188+
# URL where the frontend is served, defaults to http://localhost:3000
189+
UI_APP_URL=http://localhost:3000
180190

181191
################################################################################
182192
# 🛠️ DEV Settings
@@ -196,6 +206,16 @@ LITELLM_LOG="ERROR"
196206
# DEFAULT_USER_EMAIL=""
197207
# DEFAULT_USER_PASSWORD=""
198208

209+
################################################################################
210+
# 📂 AWS Settings
211+
################################################################################
212+
213+
#AWS_REGION=""
214+
#AWS_ENDPOINT_URL=""
215+
#AWS_ACCESS_KEY_ID=""
216+
#AWS_SECRET_ACCESS_KEY=""
217+
#AWS_SESSION_TOKEN=""
218+
199219
------------------------------- END OF POSSIBLE SETTINGS -------------------------------
200220

201221

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ body:
7171
required: true
7272
- label: I have specified the location of the documentation issue
7373
required: true
74+

.github/actions/cognee_setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
uses: astral-sh/setup-uv@v4
2525
with:
2626
enable-cache: true
27-
27+
2828
- name: Rebuild uv lockfile
2929
shell: bash
3030
run: |
@@ -41,4 +41,4 @@ runs:
4141
EXTRA_ARGS="$EXTRA_ARGS --extra $extra"
4242
done
4343
fi
44-
uv sync --extra api --extra docs --extra evals --extra gemini --extra codegraph --extra ollama --extra dev --extra neo4j $EXTRA_ARGS
44+
uv sync --extra api --extra docs --extra evals --extra codegraph --extra ollama --extra dev --extra neo4j $EXTRA_ARGS

.github/core-team.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Core team GitHub logins (one per line). Lines may begin with @; case-insensitive.
2+
borisarzentar
3+
daukadolt
4+
dexters1
5+
hajdul88
6+
hande-k
7+
lxobr
8+
pazone
9+
siillee
10+
vasilije1990
11+
12+

.github/workflows/basic_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
uses: ./.github/actions/cognee_setup
189189
with:
190190
python-version: ${{ inputs.python-version }}
191+
extra-dependencies: "baml"
191192

192193
- name: Run Simple Examples
193194
run: uv run python ./examples/python/simple_example.py

.github/workflows/e2e_tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ jobs:
166166
python-version: '3.11.x'
167167
extra-dependencies: "aws"
168168

169-
- name: Dependencies already installed
170-
run: echo "Dependencies already installed in setup"
171-
172169
- name: Run S3 Bucket Test
173170
env:
174171
ENV: 'dev'

.github/workflows/examples_tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Reusable Examples Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58

@@ -131,3 +134,28 @@ jobs:
131134
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
132135
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
133136
run: uv run python ./examples/python/memify_coding_agent_example.py
137+
138+
test-permissions-example:
139+
name: Run Permissions Example
140+
runs-on: ubuntu-22.04
141+
steps:
142+
- name: Check out repository
143+
uses: actions/checkout@v4
144+
145+
- name: Cognee Setup
146+
uses: ./.github/actions/cognee_setup
147+
with:
148+
python-version: '3.11.x'
149+
150+
- name: Run Memify Tests
151+
env:
152+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
153+
LLM_MODEL: ${{ secrets.LLM_MODEL }}
154+
LLM_ENDPOINT: ${{ secrets.LLM_ENDPOINT }}
155+
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
156+
LLM_API_VERSION: ${{ secrets.LLM_API_VERSION }}
157+
EMBEDDING_MODEL: ${{ secrets.EMBEDDING_MODEL }}
158+
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
159+
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
160+
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
161+
run: uv run python ./examples/python/permissions_example.py
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Label PRs from core team
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened, synchronize, ready_for_review, edited]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
11+
jobs:
12+
label-core-team:
13+
if: ${{ !github.event.pull_request.draft }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out base repository
17+
uses: actions/checkout@v4
18+
with:
19+
repository: ${{ github.repository }}
20+
ref: ${{ github.event.pull_request.base.ref }}
21+
22+
- name: Determine if PR author is a core team member
23+
id: check_core
24+
shell: bash
25+
run: |
26+
AUTHOR="${{ github.event.pull_request.user.login }}"
27+
LIST_FILE=".github/core-team.txt"
28+
29+
if [ ! -f "$LIST_FILE" ]; then
30+
echo "core=false" >> "$GITHUB_OUTPUT"
31+
exit 0
32+
fi
33+
34+
# Normalize author to lowercase and strip leading '@'
35+
AUTHOR_NORM="$(echo "$AUTHOR" | tr '[:upper:]' '[:lower:]' | sed 's/^@//')"
36+
37+
# Compare against normalized list values (ignore comments/blank lines)
38+
if awk -v author="$AUTHOR_NORM" '
39+
BEGIN { found=0 }
40+
{
41+
line=$0
42+
sub(/^[ \t]+|[ \t]+$/, "", line)
43+
if (line ~ /^#/ || line == "") next
44+
sub(/^@/, "", line)
45+
line=tolower(line)
46+
if (line == author) { found=1; exit }
47+
}
48+
END { exit(found ? 0 : 1) }
49+
' "$LIST_FILE"; then
50+
echo "core=true" >> "$GITHUB_OUTPUT"
51+
else
52+
echo "core=false" >> "$GITHUB_OUTPUT"
53+
fi
54+
55+
- name: Add core-team label
56+
if: steps.check_core.outputs.core == 'true'
57+
uses: actions/github-script@v7
58+
with:
59+
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
script: |
61+
const label = 'core-team';
62+
const { owner, repo } = context.repo;
63+
const prNumber = context.payload.pull_request.number;
64+
try {
65+
await github.rest.issues.addLabels({
66+
owner,
67+
repo,
68+
issue_number: prNumber,
69+
labels: [label],
70+
});
71+
core.info(`Label '${label}' added to PR #${prNumber}`);
72+
} catch (error) {
73+
core.warning(`Failed to add label: ${error.message}`);
74+
}
75+
76+

.github/workflows/test_different_operating_systems.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
matrix:
4545
python-version: ${{ fromJSON(inputs.python-versions) }}
46-
os: [ubuntu-22.04, macos-13, macos-15, windows-latest]
46+
os: [ubuntu-22.04, macos-15, windows-latest]
4747
fail-fast: false
4848
steps:
4949
- name: Check out
@@ -79,7 +79,7 @@ jobs:
7979
strategy:
8080
matrix:
8181
python-version: ${{ fromJSON(inputs.python-versions) }}
82-
os: [ ubuntu-22.04, macos-13, macos-15, windows-latest ]
82+
os: [ ubuntu-22.04, macos-15, windows-latest ]
8383
fail-fast: false
8484
steps:
8585
- name: Check out
@@ -115,7 +115,7 @@ jobs:
115115
strategy:
116116
matrix:
117117
python-version: ${{ fromJSON(inputs.python-versions) }}
118-
os: [ ubuntu-22.04, macos-13, macos-15, windows-latest ]
118+
os: [ ubuntu-22.04, macos-15, windows-latest ]
119119
fail-fast: false
120120
steps:
121121
- name: Check out
@@ -151,7 +151,7 @@ jobs:
151151
strategy:
152152
matrix:
153153
python-version: ${{ fromJSON(inputs.python-versions) }}
154-
os: [ ubuntu-22.04, macos-13, macos-15, windows-latest ]
154+
os: [ ubuntu-22.04, macos-15, windows-latest ]
155155
fail-fast: false
156156
steps:
157157
- name: Check out
@@ -180,7 +180,7 @@ jobs:
180180
strategy:
181181
matrix:
182182
python-version: ${{ fromJSON(inputs.python-versions) }}
183-
os: [ ubuntu-22.04, macos-13, macos-15, windows-latest ]
183+
os: [ ubuntu-22.04, macos-15, windows-latest ]
184184
fail-fast: false
185185
steps:
186186
- name: Check out
@@ -210,7 +210,7 @@ jobs:
210210
strategy:
211211
matrix:
212212
python-version: ${{ fromJSON(inputs.python-versions) }}
213-
os: [ ubuntu-22.04, macos-13, macos-15, windows-latest ]
213+
os: [ ubuntu-22.04, macos-15, windows-latest ]
214214
fail-fast: false
215215
steps:
216216
- name: Check out

.github/workflows/test_llms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
env:
2828
LLM_PROVIDER: "gemini"
2929
LLM_API_KEY: ${{ secrets.GEMINI_API_KEY }}
30-
LLM_MODEL: "gemini/gemini-1.5-flash"
30+
LLM_MODEL: "gemini/gemini-2.0-flash"
3131
EMBEDDING_PROVIDER: "gemini"
3232
EMBEDDING_API_KEY: ${{ secrets.GEMINI_API_KEY }}
3333
EMBEDDING_MODEL: "gemini/text-embedding-004"
@@ -83,4 +83,4 @@ jobs:
8383
EMBEDDING_MODEL: "openai/text-embedding-3-large"
8484
EMBEDDING_DIMENSIONS: "3072"
8585
EMBEDDING_MAX_TOKENS: "8191"
86-
run: uv run python ./examples/python/simple_example.py
86+
run: uv run python ./examples/python/simple_example.py

0 commit comments

Comments
 (0)