Skip to content

Commit 304aee1

Browse files
committed
Minor rearrangements in the project structure
1 parent bc90030 commit 304aee1

25 files changed

+63
-53
lines changed

ai-assistant/src/commands/AskCodeCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
1010

11-
import { Neo4j } from "../core/db/neo4j";
12-
import { MiniLML6 } from "../core/embeddings/minilml6";
13-
import { Llama3_70B } from "../core/llm/llama3_70B";
1411
import { PromptFactory } from "../core/prompt.factory";
1512
import { Query } from "../core/query";
13+
import { Neo4j } from "../core/services/db/neo4j";
14+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
15+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1616
import { handleCommandResponse } from "../utils/handleCommandResponse";
1717

1818
export class AskCodeCommand implements ISlashCommand {

ai-assistant/src/commands/AskDocsCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
1010

11-
import { Neo4j } from "../core/db/neo4j";
12-
import { MiniLML6 } from "../core/embeddings/minilml6";
13-
import { Llama3_70B } from "../core/llm/llama3_70B";
11+
import { Neo4j } from "../core/services/db/neo4j";
12+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
13+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1414
import { handleCommandResponse } from "../utils/handleCommandResponse";
1515

1616
export class AskDocsCommand implements ISlashCommand {

ai-assistant/src/commands/DiagramCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
1010

11-
import { Neo4j } from "../core/db/neo4j";
11+
import { Neo4j } from "../core/services/db/neo4j";
1212
// import { renderDiagramToBase64URI } from "../core/diagram";
13-
import { MiniLML6 } from "../core/embeddings/minilml6";
14-
import { Llama3_70B } from "../core/llm/llama3_70B";
1513
import { PromptFactory } from "../core/prompt.factory";
1614
import { Query } from "../core/query";
15+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
16+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1717
import { handleCommandResponse } from "../utils/handleCommandResponse";
1818

1919
export class DiagramCommand implements ISlashCommand {

ai-assistant/src/commands/DocumentCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import {
77
ISlashCommand,
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
10-
import { Neo4j } from "../core/db/neo4j";
11-
import { MiniLML6 } from "../core/embeddings/minilml6";
12-
import { Llama3_70B } from "../core/llm/llama3_70B";
1310
import { PromptFactory } from "../core/prompt.factory";
1411
import { Query } from "../core/query";
12+
import { Neo4j } from "../core/services/db/neo4j";
13+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
14+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1515
import { handleCommandResponse } from "../utils/handleCommandResponse";
1616

1717
export class DocumentCommand implements ISlashCommand {

ai-assistant/src/commands/ImportanceCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import {
77
ISlashCommand,
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
10-
import { DBNode } from "../core/db/db";
11-
import { IDB } from "../core/db/db.types";
12-
import { Neo4j } from "../core/db/neo4j";
13-
import { MiniLML6 } from "../core/embeddings/minilml6";
1410
import { Query } from "../core/query";
11+
import { DBNode } from "../core/services/db/db";
12+
import { IDB } from "../core/services/db/db.types";
13+
import { Neo4j } from "../core/services/db/neo4j";
14+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
1515
import { handleCommandResponse } from "../utils/handleCommandResponse";
1616

1717
export class ImportanceCommand implements ISlashCommand {

ai-assistant/src/commands/TestLLM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
1010

11-
import { Llama3_70B } from "../core/llm/llama3_70B";
1211
import { Prompt } from "../core/prompt";
12+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1313
import { handleCommandResponse } from "../utils/handleCommandResponse";
1414

1515
export class TestCommand implements ISlashCommand {

ai-assistant/src/commands/TranslateCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import {
77
ISlashCommand,
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
10-
import { Neo4j } from "../core/db/neo4j";
11-
import { MiniLML6 } from "../core/embeddings/minilml6";
12-
import { Llama3_70B } from "../core/llm/llama3_70B";
1310
import { PromptFactory } from "../core/prompt.factory";
1411
import { Query } from "../core/query";
12+
import { Neo4j } from "../core/services/db/neo4j";
13+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
14+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1515
import { handleCommandResponse } from "../utils/handleCommandResponse";
1616

1717
export class TranslateCommand implements ISlashCommand {

ai-assistant/src/commands/WhyUsedCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
SlashCommandContext,
99
} from "@rocket.chat/apps-engine/definition/slashcommands";
1010
import { writeFileSync } from "fs";
11-
import { Neo4j } from "../core/db/neo4j";
11+
import { Neo4j } from "../core/services/db/neo4j";
1212
// import { renderDiagramToBase64URI } from "../core/diagram";
13-
import { MiniLML6 } from "../core/embeddings/minilml6";
14-
import { Llama3_70B } from "../core/llm/llama3_70B";
1513
import { PromptFactory } from "../core/prompt.factory";
1614
import { Query } from "../core/query";
15+
import { MiniLML6 } from "../core/services/embeddings/minilml6";
16+
import { Llama3_70B } from "../core/services/llm/llama3_70B";
1717
import { handleCommandResponse } from "../utils/handleCommandResponse";
1818

1919
export class WhyUsedCommand implements ISlashCommand {

ai-assistant/src/core/query.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { DBNode } from "./db/db";
2-
import { IDB } from "./db/db.types";
3-
import { IEmbeddingModel } from "./embeddings/embeddings.types";
4-
import { ILLMModel } from "./llm/llm.types";
51
import { PromptFactory } from "./prompt.factory";
2+
import { DBNode } from "./services/db/db";
3+
import { IDB } from "./services/db/db.types";
4+
import { IEmbeddingModel } from "./services/embeddings/embeddings.types";
5+
import { ILLMModel } from "./services/llm/llm.types";
66

77
export namespace Query {
88
export async function getDBNodesFromVectorQuery(

0 commit comments

Comments
 (0)