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
2 changes: 0 additions & 2 deletions src/copilot-chat/build/build-pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@

pushd $(dirname "$0") > /dev/null

cp -arfT "../../../dashboard/ltp_productivity.SemanticModel/definition/tables" "../src/copilot_agent/data/demoM3_LTP/tables"

popd > /dev/null
1 change: 0 additions & 1 deletion src/copilot-chat/src/copilot_agent/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

DATA_DIR = pkg_resources.files('copilot_agent.data')
PROMPT_DIR = pkg_resources.files('copilot_agent.prompts')
SQLDB_DIR = pkg_resources.files('copilot_agent.data.sqldb')

# set version, ["p0", "ga"]
COPILOT_VERSION = os.getenv('COPILOT_VERSION', '').lower()
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions src/copilot-chat/src/copilot_agent/data/sqldb/__init__.py

This file was deleted.

20 changes: 0 additions & 20 deletions src/copilot-chat/src/copilot_agent/data/sqldb/test/data.csv

This file was deleted.

Binary file not shown.
6 changes: 0 additions & 6 deletions src/copilot-chat/src/copilot_agent/data/sqldb/test/schema.txt

This file was deleted.

12 changes: 6 additions & 6 deletions src/copilot-chat/src/copilot_agent/ltp/ltp_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def get_instance(cls):

@classmethod
def _init_instance(cls):
KUSTO_SAMPLE_FILE = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto/_examples.txt')
KUSTO_SAMPLE_DATA_FILE = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto/_examples_from_data.txt')
KUSTO_TABLE_DIR = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto')
KUSTO_OPERATOR_FILE = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto/_operators.txt')
KUSTO_RELATIONSHIP_FILE = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto/_relationships.txt')
KUSTO_KNOWLEDGE_FILE = os.path.join(DATA_DIR, 'demoM3_LTP/rag/kusto/_knowledge.txt')
KUSTO_SAMPLE_FILE = os.path.join(DATA_DIR, 'LTP/rag/kusto/_examples.txt')
KUSTO_SAMPLE_DATA_FILE = os.path.join(DATA_DIR, 'LTP/rag/kusto/_examples_from_data.txt')
KUSTO_TABLE_DIR = os.path.join(DATA_DIR, 'LTP/rag/kusto')
KUSTO_OPERATOR_FILE = os.path.join(DATA_DIR, 'LTP/rag/kusto/_operators.txt')
KUSTO_RELATIONSHIP_FILE = os.path.join(DATA_DIR, 'LTP/rag/kusto/_relationships.txt')
KUSTO_KNOWLEDGE_FILE = os.path.join(DATA_DIR, 'LTP/rag/kusto/_knowledge.txt')
my_llm_session = LLMSession()
# prompt
kql_sample_prompt = DocPrepare.get_txt_as_string(KUSTO_SAMPLE_FILE)
Expand Down
4 changes: 2 additions & 2 deletions src/copilot-chat/src/copilot_agent/utils/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from ..utils.logger import logger

from ..config import SQLDB_DIR

from ..config import DATA_DIR
SQLDB_DIR = os.path.join(DATA_DIR, 'sql')

class SQLManager:
"""SQL DB backend."""
Expand Down