Skip to content

Commit 2003a12

Browse files
committed
remove claude
1 parent 7dbb5a7 commit 2003a12

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Nova model for RAG responses
2+
export const RAG_MODEL_ID = "amazon.nova-pro-v1:0"
3+
// Nova model for query reformulation
4+
export const QUERY_REFORMULATION_MODEL_ID = "amazon.nova-lite-v1:0"

packages/cdk/resources/Functions.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ import {ManagedPolicy, PolicyStatement, Role} from "aws-cdk-lib/aws-iam"
44
import {StringParameter} from "aws-cdk-lib/aws-ssm"
55
import {Secret} from "aws-cdk-lib/aws-secretsmanager"
66
import {TableV2} from "aws-cdk-lib/aws-dynamodb"
7+
import {QUERY_REFORMULATION_MODEL_ID, RAG_MODEL_ID} from "./Constants"
78

8-
// Claude model for RAG responses
9-
const RAG_MODEL_ID = "anthropic.claude-3-sonnet-20240229-v1:0"
10-
// Claude model for query reformulation
11-
const QUERY_REFORMULATION_MODEL_ID = "anthropic.claude-3-haiku-20240307-v1:0"
12-
const BEDROCK_KB_DATA_SOURCE = "eps-assist-kb-ds"
139
const LAMBDA_MEMORY_SIZE = "265"
1410

1511
export interface FunctionsProps {
@@ -61,7 +57,6 @@ export class Functions extends Construct {
6157
"RAG_MODEL_ID": RAG_MODEL_ID,
6258
"QUERY_REFORMULATION_MODEL_ID": QUERY_REFORMULATION_MODEL_ID,
6359
"KNOWLEDGEBASE_ID": props.knowledgeBaseId,
64-
"BEDROCK_KB_DATA_SOURCE": BEDROCK_KB_DATA_SOURCE,
6560
"LAMBDA_MEMORY_SIZE": LAMBDA_MEMORY_SIZE,
6661
"SLACK_BOT_TOKEN_PARAMETER": props.slackBotTokenParameter.parameterName,
6762
"SLACK_SIGNING_SECRET_PARAMETER": props.slackSigningSecretParameter.parameterName,

packages/cdk/resources/RuntimePolicies.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import {Construct} from "constructs"
22
import {PolicyStatement, ManagedPolicy} from "aws-cdk-lib/aws-iam"
3-
4-
// Claude model for RAG responses
5-
const RAG_MODEL_ID = "anthropic.claude-3-sonnet-20240229-v1:0"
6-
// Claude model for query reformulation
7-
const QUERY_REFORMULATION_MODEL_ID = "anthropic.claude-3-haiku-20240307-v1:0"
3+
import {QUERY_REFORMULATION_MODEL_ID, RAG_MODEL_ID} from "./Constants"
84

95
export interface RuntimePoliciesProps {
106
readonly region: string

packages/slackBotFunction/app/services/query_reformulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
def reformulate_query(user_query: str) -> str:
1515
"""
16-
Reformulate user query using Claude Haiku for better RAG retrieval.
16+
Reformulate user query using Nova for better RAG retrieval.
1717
1818
Loads prompt template from Bedrock Prompt Management, formats it with the user's
19-
query, and uses Claude to generate a reformulated version optimized for vector search.
19+
query, and uses Nova to generate a reformulated version optimized for vector search.
2020
"""
2121
try:
2222
client: BedrockRuntimeClient = boto3.client("bedrock-runtime", region_name=os.environ["AWS_REGION"])

0 commit comments

Comments
 (0)