* Update cognify and the networkx client to prepare for running in Neo4j * Fix for openai model * Add the fix to the infra so that the models can be passed to the library. Enable llm_provider to be passed. * Auto graph generation now works with neo4j * Added fixes for both neo4j and networkx * Explicitly name semantic node connections * Added updated docs, readme, chunkers and updates to cognify * Make docs build trigger only when changes on it happen * Update docs, test git actions * Separate cognify logic into tasks * Introduce dspy knowledge graph extraction --------- Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
29 lines
No EOL
680 B
Bash
29 lines
No EOL
680 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
|
|
shopt -s dotglob
|
|
shopt -s nullglob
|
|
# verifies if python packages have proper structure
|
|
# find all directories not containing __init__
|
|
error=
|
|
while IFS= read -r d; do
|
|
myarray=(`find $d -maxdepth 1 -name "*.py"`)
|
|
if [ ${#myarray[@]} -gt 0 ]; then
|
|
if [[ $@ == *--fix* ]]; then
|
|
echo Will create "$d/__init__.py"
|
|
touch "$d/__init__.py"
|
|
else
|
|
echo Folder "$d" lacks __init__.py file
|
|
error="yes"
|
|
fi
|
|
fi
|
|
done < <(find . -mindepth 1 -not -path "./docs/website/node_modules*" -type d -regex "^./[^.^_].*" '!' -exec test -e "{}/__init__.py" ';' -print)
|
|
|
|
if [ -z $error ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# error in package
|
|
exit 1 |