diff --git a/.github/workflows/basic_tests.yml b/.github/workflows/basic_tests.yml index 080d90536..98ced21dc 100644 --- a/.github/workflows/basic_tests.yml +++ b/.github/workflows/basic_tests.yml @@ -158,7 +158,7 @@ jobs: python-version: ${{ inputs.python-version }} - name: Run Simple Examples - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py simple-examples-baml: name: Run Simple Examples BAML @@ -196,7 +196,7 @@ jobs: extra-dependencies: "baml" - name: Run Simple Examples - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py graph-tests: name: Run Basic Graph Tests @@ -226,4 +226,4 @@ jobs: python-version: ${{ inputs.python-version }} - name: Run Graph Tests - run: uv run python ./new-examples/custom_pipelines/code_graph_repository_analysis_example.py --repo_path ./cognee/tasks/graph + run: uv run python ./examples/python/code_graph_example.py --repo_path ./cognee/tasks/graph diff --git a/.github/workflows/db_examples_tests.yml b/.github/workflows/db_examples_tests.yml index c8d3d9714..c58bc48ef 100644 --- a/.github/workflows/db_examples_tests.yml +++ b/.github/workflows/db_examples_tests.yml @@ -74,7 +74,7 @@ jobs: GRAPH_DATABASE_USERNAME: ${{ steps.neo4j.outputs.neo4j-username }} GRAPH_DATABASE_PASSWORD: ${{ steps.neo4j.outputs.neo4j-password }} run: | - uv run python new-examples/configurations/database_examples/neo4j_graph_database_configuration.py + uv run python examples/database_examples/neo4j_example.py run-db-example-kuzu: name: "Kuzu DB Example Test" @@ -106,7 +106,7 @@ jobs: EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} GRAPH_DATABASE_PROVIDER: "kuzu" run: | - uv run python new-examples/configurations/database_examples/kuzu_graph_database_configuration.py + uv run python examples/database_examples/kuzu_example.py run-db-example-pgvector: name: "PostgreSQL PGVector DB Example Test" @@ -151,4 +151,4 @@ jobs: EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} run: | - uv run python new-examples/configurations/database_examples/pgvector_postgres_vector_database_configuration.py + uv run python examples/database_examples/pgvector_example.py diff --git a/.github/workflows/examples_tests.yml b/.github/workflows/examples_tests.yml index 6d8946e57..f7cc278cb 100644 --- a/.github/workflows/examples_tests.yml +++ b/.github/workflows/examples_tests.yml @@ -24,7 +24,7 @@ jobs: ENV: 'dev' LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: uv run python ./new-examples/demos/multimedia_processing/multimedia_audio_image_processing_example.py + run: uv run python ./examples/python/multimedia_example.py test-eval-example: name: Run Eval Example @@ -112,7 +112,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/custom_pipelines/dynamic_steps_resume_analysis_hr_example.py + run: uv run python ./examples/python/dynamic_steps_example.py test-temporal-example: name: Run Temporal Tests @@ -138,7 +138,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/demos/temporal_awareness_example.py + run: uv run python ./examples/python/temporal_example.py test-ontology-example: name: Run Ontology Tests @@ -164,7 +164,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/demos/ontology_reference_vocabulary/ontology_as_reference_vocabulary_example.py + run: uv run python ./examples/python/ontology_demo_example.py test-agentic-reasoning: name: Run Agentic Reasoning Tests @@ -190,7 +190,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/custom_pipelines/agentic_reasoning_procurement_example.py + run: uv run python ./examples/python/agentic_reasoning_procurement_example.py test-memify: name: Run Memify Example @@ -216,7 +216,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/custom_pipelines/memify_coding_agent_rule_extraction_example.py + run: uv run python ./examples/python/memify_coding_agent_example.py test-custom-pipeline: name: Run Custom Pipeline Example @@ -242,7 +242,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/custom_pipelines/custom_cognify_pipeline_example.py + run: uv run python ./examples/python/run_custom_pipeline_example.py test-permissions-example: name: Run Permissions Example @@ -268,7 +268,7 @@ jobs: EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }} EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }} EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }} - run: uv run python ./new-examples/configurations/permissions_example/user_permissions_and_access_control_example.py + run: uv run python ./examples/python/permissions_example.py test_docling_add: name: Run Add with Docling Test runs-on: macos-15 diff --git a/.github/workflows/test_llms.yml b/.github/workflows/test_llms.yml index 6c7e564c3..6b0221309 100644 --- a/.github/workflows/test_llms.yml +++ b/.github/workflows/test_llms.yml @@ -33,7 +33,7 @@ jobs: EMBEDDING_MODEL: "gemini/text-embedding-004" EMBEDDING_DIMENSIONS: "768" EMBEDDING_MAX_TOKENS: "8076" - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py test-fastembed: name: Run Fastembed Test @@ -58,7 +58,7 @@ jobs: EMBEDDING_MODEL: "sentence-transformers/all-MiniLM-L6-v2" EMBEDDING_DIMENSIONS: "384" EMBEDDING_MAX_TOKENS: "256" - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py test-openrouter: name: Run OpenRouter Test @@ -83,4 +83,4 @@ jobs: EMBEDDING_MODEL: "openai/text-embedding-3-large" EMBEDDING_DIMENSIONS: "3072" EMBEDDING_MAX_TOKENS: "8191" - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py diff --git a/.github/workflows/test_ollama.yml b/.github/workflows/test_ollama.yml index 611a9d4fd..686545c70 100644 --- a/.github/workflows/test_ollama.yml +++ b/.github/workflows/test_ollama.yml @@ -101,4 +101,4 @@ jobs: EMBEDDING_ENDPOINT: "http://localhost:11434/api/embed" EMBEDDING_DIMENSIONS: "4096" HUGGINGFACE_TOKENIZER: "Salesforce/SFR-Embedding-Mistral" - run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py + run: uv run python ./examples/python/simple_example.py diff --git a/.github/workflows/weighted_edges_tests.yml b/.github/workflows/weighted_edges_tests.yml index bae3dbe4c..2b4a043bf 100644 --- a/.github/workflows/weighted_edges_tests.yml +++ b/.github/workflows/weighted_edges_tests.yml @@ -7,7 +7,7 @@ on: - 'cognee/modules/graph/utils/get_graph_from_model.py' - 'cognee/infrastructure/engine/models/Edge.py' - 'cognee/tests/unit/interfaces/graph/test_weighted_edges.py' - - 'new-examples/demos/weighted_edges_relationships_example.py' + - 'examples/python/weighted_edges_example.py' - '.github/workflows/weighted_edges_tests.yml' pull_request: branches: [ main, dev ] @@ -15,7 +15,7 @@ on: - 'cognee/modules/graph/utils/get_graph_from_model.py' - 'cognee/infrastructure/engine/models/Edge.py' - 'cognee/tests/unit/interfaces/graph/test_weighted_edges.py' - - 'new-examples/demos/weighted_edges_relationships_example.py' + - 'examples/python/weighted_edges_example.py' - '.github/workflows/weighted_edges_tests.yml' env: @@ -128,13 +128,13 @@ jobs: - name: Test Weighted Edges Example run: | - uv run python new-examples/demos/weighted_edges_relationships_example.py + uv run python examples/python/weighted_edges_example.py - name: Verify Visualization File Created run: | - if [ -f "new-examples/demos/weighted_graph_visualization.html" ]; then + if [ -f "examples/python/weighted_graph_visualization.html" ]; then echo "✅ Visualization file created successfully" - ls -la new-examples/demos/weighted_graph_visualization.html + ls -la examples/python/weighted_graph_visualization.html else echo "❌ Visualization file not found" exit 1 @@ -159,11 +159,11 @@ jobs: - name: Run Linting on Weighted Edges Files uses: astral-sh/ruff-action@v2 with: - args: "check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py new-examples/demos/weighted_edges_relationships_example.py" + args: "check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" - name: Run Formatting Check on Weighted Edges Files uses: astral-sh/ruff-action@v2 with: - args: "format --check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py new-examples/demos/weighted_edges_relationships_example.py" + args: "format --check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py" \ No newline at end of file