-
Notifications
You must be signed in to change notification settings - Fork 967
Merge dev to main #827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Merge dev to main #827
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8afbecf
merge
Vasilije1990 7bdb2ab
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 b35e047
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 2a485f9
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 f072e8d
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 98a1b79
fix: run cognee in Docker [COG-1961] (#775)
dexters1 17a77c5
Merge remote-tracking branch 'origin/main' into dev
borisarzentar 80e5edc
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 5aca3f0
fix: Doesn't drop entire PG database, just cleans public schema - Cog…
Vasilije1990 0a9e1a4
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 79921f8
Merge remote-tracking branch 'origin/main' into dev
Vasilije1990 6109bf5
feat: Add uv and poetry support to Cognee [COG-1572] (#780)
dexters1 a627841
fix: networkx id type change [COG-1876] (#786)
dexters1 c4915a4
Mcp SSE support [COG-1781] (#785)
dexters1 773752a
feat: Add detailed log handling options for Cognee exceptions [COG-19…
dexters1 66ecd35
fix: s3fs version fix [COG-2025] (#798)
dexters1 ad943d0
docs: add cognee UI (#799)
hande-k cd9c489
feat: remove get_distance_from_collection_names and adapt search (#766)
borisarzentar 7db7422
docs: update colab demo (#795)
hande-k 5970d96
feat: pass context argument to tasks that require it (#788)
borisarzentar 9729547
feat: abstract logging tool integration (#787)
borisarzentar d417c71
merged
Vasilije1990 5d415dc
feat: Add Memgraph integration (#751)
matea16 34b95b6
refactor: Handle boto3 s3fs dependencies better (#809)
dexters1 a78fec3
fix: Fixes collection search limit in brute force triplet search (#814)
hajdul88 9c131f0
refactor: Update lanceDB and change delete to work async (#770)
dexters1 f93463e
fix: make onnxruntime flexible (#815)
borisarzentar 8ea0097
fix: graphiti example (#816)
soobrosa 13bb244
feat: Create notebook to show how to compute ranks from graph (#771)
diegoabt 966e337
feat: add MCP check status tool [COG-1784] (#793)
dexters1 e3121f5
docs: Update log level of CollectionNotFoundError (#819)
dexters1 91f3cd9
fix: notebooks (#818)
soobrosa 1e7b56f
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 0f3522e
fix: cognee docker image (#820)
borisarzentar badd73c
Merge branch 'dev' of github.com:topoteretes/cognee into dev
Vasilije1990 c058219
Clean up core cognee repo
Vasilije1990 729cb9b
Revert "Clean up core cognee repo"
Vasilije1990 ad0bb0c
version: v0.1.40 (#825)
borisarzentar 7ac5761
Merge branch 'main' into dev
Vasilije1990 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: test | memgraph | ||
|
|
||
| # on: | ||
| # workflow_dispatch: | ||
| # pull_request: | ||
| # types: [labeled, synchronize] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| RUNTIME__LOG_LEVEL: ERROR | ||
|
|
||
| jobs: | ||
| run_memgraph_integration_test: | ||
| name: test | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| steps: | ||
| - name: Check out | ||
| uses: actions/checkout@master | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.10.x' | ||
|
|
||
| - name: Install Poetry | ||
| uses: snok/[email protected] | ||
| with: | ||
| virtualenvs-create: true | ||
| virtualenvs-in-project: true | ||
| installer-parallel: true | ||
|
|
||
| - name: Install dependencies | ||
| run: poetry install -E memgraph --no-interaction | ||
|
|
||
| - name: Run default Memgraph | ||
| env: | ||
| ENV: 'dev' | ||
| LLM_MODEL: ${{ secrets.LLM_MODEL }} | ||
| LLM_ENDPOINT: ${{ secrets.LLM_ENDPOINT }} | ||
| LLM_API_KEY: ${{ secrets.LLM_API_KEY }} | ||
| LLM_API_VERSION: ${{ secrets.LLM_API_VERSION }} | ||
| EMBEDDING_MODEL: ${{ secrets.EMBEDDING_MODEL }} | ||
| EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} | ||
| EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} | ||
| EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} | ||
| GRAPH_DATABASE_URL: ${{ secrets.MEMGRAPH_API_URL }} | ||
| GRAPH_DATABASE_PASSWORD: ${{ secrets.MEMGRAPH_API_KEY }} | ||
| GRAPH_DATABASE_USERNAME: " " | ||
| run: poetry run python ./cognee/tests/test_memgraph.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1,61 @@ | ||
| FROM python:3.11-slim | ||
|
|
||
| # Define Poetry extras to install | ||
| ARG POETRY_EXTRAS="\ | ||
| # API \ | ||
| api \ | ||
| # Storage & Databases \ | ||
| postgres weaviate qdrant neo4j falkordb milvus kuzu chromadb \ | ||
| # Notebooks & Interactive Environments \ | ||
| notebook \ | ||
| # LLM & AI Frameworks \ | ||
| langchain llama-index gemini huggingface ollama mistral groq anthropic \ | ||
| # Evaluation & Monitoring \ | ||
| deepeval evals posthog \ | ||
| # Graph Processing & Code Analysis \ | ||
| codegraph graphiti \ | ||
| # Document Processing \ | ||
| docs" | ||
| # Use a Python image with uv pre-installed | ||
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv | ||
|
|
||
| # Install the project into `/app` | ||
| WORKDIR /app | ||
|
|
||
| # Enable bytecode compilation | ||
| # ENV UV_COMPILE_BYTECODE=1 | ||
|
|
||
| # Copy from the cache instead of linking since it's a mounted volume | ||
| ENV UV_LINK_MODE=copy | ||
|
|
||
| # Set build argument | ||
| ARG DEBUG | ||
|
|
||
| # Set environment variable based on the build argument | ||
| ENV DEBUG=${DEBUG} | ||
| ENV PIP_NO_CACHE_DIR=true | ||
| ENV PATH="${PATH}:/root/.poetry/bin" | ||
|
|
||
| RUN apt-get update | ||
| # Install system dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| gcc \ | ||
| libpq-dev \ | ||
| git \ | ||
| curl \ | ||
| clang \ | ||
| build-essential \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN apt-get install -y \ | ||
| gcc \ | ||
| libpq-dev | ||
| # Copy pyproject.toml and lockfile first for better caching | ||
| COPY README.md pyproject.toml uv.lock entrypoint.sh ./ | ||
|
|
||
| WORKDIR /app | ||
| COPY pyproject.toml poetry.lock /app/ | ||
|
|
||
| RUN pip install poetry | ||
| # Install the project's dependencies using the lockfile and settings | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| uv sync --extra debug --extra api --extra postgres --extra weaviate --extra qdrant --extra neo4j --extra kuzu --extra llama-index --extra gemini --extra ollama --extra mistral --extra groq --extra anthropic --frozen --no-install-project --no-dev --no-editable | ||
|
|
||
| # Don't create virtualenv since Docker is already isolated | ||
| RUN poetry config virtualenvs.create false | ||
| # Copy Alembic configuration | ||
| COPY alembic.ini /app/alembic.ini | ||
| COPY alembic/ /app/alembic | ||
|
|
||
| # Install the dependencies using the defined extras | ||
| RUN poetry install --extras "${POETRY_EXTRAS}" --no-root --without dev | ||
| # Then, add the rest of the project source code and install it | ||
| # Installing separately from its dependencies allows optimal layer caching | ||
| COPY ./cognee /app/cognee | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| uv sync --extra debug --extra api --extra postgres --extra weaviate --extra qdrant --extra neo4j --extra kuzu --extra llama-index --extra gemini --extra ollama --extra mistral --extra groq --extra anthropic --frozen --no-dev --no-editable | ||
|
|
||
| # Set the PYTHONPATH environment variable to include the /app directory | ||
| ENV PYTHONPATH=/app | ||
| FROM python:3.12-slim-bookworm | ||
|
|
||
| COPY cognee/ /app/cognee | ||
| WORKDIR /app | ||
|
|
||
| # Copy Alembic configuration | ||
| COPY alembic.ini /app/alembic.ini | ||
| COPY alembic/ /app/alembic | ||
| COPY --from=uv /app /app | ||
| # COPY --from=uv /app/.venv /app/.venv | ||
| # COPY --from=uv /root/.local /root/.local | ||
|
|
||
| COPY entrypoint.sh /app/entrypoint.sh | ||
| RUN chmod +x /app/entrypoint.sh | ||
|
|
||
| RUN sed -i 's/\r$//' /app/entrypoint.sh | ||
| # Place executables in the environment at the front of the path | ||
| ENV PATH="/app/.venv/bin:$PATH" | ||
|
|
||
| ENV PYTHONPATH=/app | ||
|
|
||
| ENTRYPOINT ["/app/entrypoint.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure PRs target the
devbranch: The removal of the explicit instruction to open pull requests against thedevbranch may lead contributors to accidentally targetmain. Please reintroduce guidance to verify that the base branch is set todevwhen clicking "Compare & Pull Request".🤖 Prompt for AI Agents