<!-- .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 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced code search and dependency analysis for improved accuracy. - Introduced a new high-performance text embedding option. - Added an additional execution entry point for code graph processing. - New optional parameters for flexible property selection in retrieval functions. - Introduced new classes for handling import statements, function definitions, and class definitions. - Updated embedding engine selection based on configuration options. - **Bug Fixes** - Improved error handling in search operations and database queries for a more stable user experience. - Enhanced error logging for source code parsing. - **Refactor** - Streamlined asynchronous processing and refactored internal dependency extraction. - Updated configuration and integration settings to enhance overall reliability. - Restructured functions for simplified dependency handling. - **Chores** - Upgraded and reorganized dependency management with optional libraries for extended functionality. - Added new secret parameters for embedding configuration in workflow settings. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: vasilije <vas.markovic@gmail.com>
27 lines
871 B
YAML
27 lines
871 B
YAML
name: test | code graph example
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [labeled, synchronize]
|
|
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run_simple_example_test:
|
|
uses: ./.github/workflows/reusable_python_example.yml
|
|
with:
|
|
example-location: ./examples/python/code_graph_example.py
|
|
arguments: "--repo_path ./evals"
|
|
secrets:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
EMBEDDING_PROVIDER: "fastembed"
|
|
EMBEDDING_MODEL: "sentence-transformers/all-MiniLM-L6-v2"
|
|
EMBEDDING_DIMENSIONS: 384
|
|
EMBEDDING_MAX_TOKENS: 256
|
|
GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }}
|
|
GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }}
|