Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ $RECYCLE.BIN/

### Unstract ###

# Plugins
# Authentication Plugins
backend/plugins/authentication/*
!backend/plugins/authentication/auth_sample

Expand All @@ -624,9 +624,15 @@ docker/*.env
!docker/sample.*.env
docker/public_tools.json
docker/proxy_overrides.yaml
docker/workflow_data/

# Tool development
tools/*/sdks/
tools/*/unstract-sdk/
tools/*/data_dir/

docker/workflow_data/
# Backend settings ignore (allows user overrides)
backend/backend/settings/*
!backend/backend/settings/__init__.py
!backend/backend/settings/base.py
!backend/backend/settings/dev.py
!backend/backend/settings/test.py
30 changes: 15 additions & 15 deletions backend/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import os
from pathlib import Path
from typing import Any
from typing import Any, Optional

from django.conf import settings
from file_management.file_management_helper import FileManagerHelper
Expand Down Expand Up @@ -388,10 +388,10 @@ def dynamic_indexer(
vector_db = str(profile_manager.vector_store.id)
x2text_adapter = str(profile_manager.x2text.id)
file_hash = ToolUtils.get_hash_from_file(file_path=file_name)
extract_file_path = None
extract_file_path: Optional[str] = None
if not is_summary:
directory, filename = os.path.split(file_name)
extract_file_path: str = os.path.join(
extract_file_path = os.path.join(
directory, "extract", os.path.splitext(filename)[0] + ".txt"
)
return str(
Expand Down
4 changes: 2 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ dependencies = [
"python-socketio==5.9.0", # For log_events
"social-auth-app-django==5.3.0", # For OAuth
"social-auth-core==4.4.2", # For OAuth
"unstract-sdk~=0.12.1",
"unstract-adapters~=0.2.2",
"unstract-sdk~=0.13.0",
"unstract-adapters~=0.3.0",
# ! IMPORTANT!
# Indirect local dependencies usually need to be added in their own projects
# as: https://pdm-project.org/latest/usage/dependency/#local-dependencies.
Expand Down
4 changes: 2 additions & 2 deletions backend/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ PROMPT_PORT=3003
PROMPT_STUDIO_FILE_PATH=/app/prompt-studio-data

# Structure Tool
STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.1"
STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.2"
STRUCTURE_TOOL_IMAGE_NAME="unstract/tool-structure"
STRUCTURE_TOOL_IMAGE_TAG="0.0.1"
STRUCTURE_TOOL_IMAGE_TAG="0.0.2"

# Feature Flags
EVALUATION_SERVER_IP=localhost
Expand Down
53 changes: 26 additions & 27 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading