MitchelHsu commited on
Commit
c08dbcf
1 Parent(s): 7fe8016

Delete app/config.py

Browse files
Files changed (1) hide show
  1. app/config.py +0 -47
app/config.py DELETED
@@ -1,47 +0,0 @@
1
-
2
- # LangChain templates
3
- template = """
4
- You are a call log summarization agent. Your job is to extract call summary bulletins only related to the question from a sequence of call logs. Please answer with bullets points only. Do not repeat facts in different bullets, and only response on facts with final decisions, avoid include previous decisions or decision process. Above are some examples of responses.\nGive response to the following question: {question}, according to the meeting logs:\n{logs}
5
- """
6
-
7
- template_v2 = """
8
- You are a call log fact extraction agent. Your task is to process and extract information from a set of call logs based on a single question provided.
9
-
10
- Provide a concise list of facts extracted from the call logs that directly answer the question. Avoid including the conversation process of the facts in your response. Provide only the list, without any other text. Each bullet should only contain one single fact. Please be mindful of the order of the logs and the updated facts/information/decisions and exclude any that have been canceled, including any associated relations.
11
- If the question seems irrelevant to the call logs provided, please just reply "The question seems irrelevant to the call logs provided.".
12
- Above are some response examples.
13
-
14
- Question: {question}
15
- List of Call Logs:
16
- {logs}
17
- """
18
-
19
- example_template = """Question: {question}
20
- List of Call Logs:
21
- {logs}
22
- Answer:
23
- {answer}"""
24
-
25
- examples = [
26
- {'logs': "00:00:10 - Alex: Let's choose our app's color scheme today.\n00:00:36 - Jordan: I suggest blue for a calm feel.\n00:00:51 - Casey: We need to make sure it's accessible to all users.",
27
- 'question': 'What product design decisions did the team make?',
28
- 'answer': "- The team will use blue for the color scheme of the app.\n- The team will make the app accessible to all users."},
29
- {'logs': "1\n00:01:11,430 --> 00:01:40,520\n John: Hello, everybody. Let's start with the product design discussion. I think we should go with a modular design for our product. It will allow us to easily add or remove features as needed.\n\n2\n00:01:41,450 --> 00:01:49,190\nSara: I agree with John. A modular design will provide us with the flexibility we need. Also, I suggest we use a responsive design to ensure our product works well on all devices. Finally, I think we should use websockets to improve latency and provide real-time updates.\n\n3\n00:01:49,340 --> 00:01:50,040\nMike: Sounds good to me. I also propose we use a dark theme for the user interface. It's trendy and reduces eye strain for users. Let's hold off on the websockets for now since it's a little bit too much work.",
30
- 'question': 'What are our product design decisions?',
31
- 'answer': "- The team has decided to go with a modular design for the product.\n- The team has decided to use a responsive design to ensure the product works well on all devices.\n- The team has decided to use a dark theme for the user interface."},
32
- {'logs': "1\n00:01:11,430 --> 00:01:40,520\nJohn: After giving it some more thought, I believe we should also consider a light theme option for the user interface. This will cater to users who prefer a brighter interface.\n\n2\n00:01:41,450 --> 00:01:49,190\nSara: That's a great idea, John. A light theme will provide an alternative to users who find the dark theme too intense.\n\n3\n00:01:49,340 --> 00:01:50,040\nMike: I'm on board with that.",
33
- 'question': 'What are our product design decisions?',
34
- 'answer': "- The team has decided to go with a modular design for the product.\n- The team has decided to use a responsive design to ensure the product works well on all devices.\n- The team has decided to provide both dark and light theme options for the user interface."},
35
- {'logs': "1\n00:01:11,430 --> 00:01:40,520\nJohn: I've been thinking about our decision on the responsive design. While it's important to ensure our product works well on all devices, I think we should focus on desktop first. Our primary users will be using our product on desktops.\n\n2\n00:01:41,450 --> 00:01:49,190\nSara: I see your point, John. Focusing on desktop first will allow us to better cater to our primary users. I agree with this change.\n\n3\n00:01:49,340 --> 00:01:50,040\nMike: I agree as well. I also think the idea of using a modular design doesn't make sense. Let's not make that decision yet.",
36
- 'question': 'What are our product design decisions?',
37
- 'answer': "- The team has decided to focus on a desktop-first design\n- The team has decided to provide both dark and light theme options for the user interface."},
38
- ]
39
-
40
- # OPENAI MODEL
41
- MODEL = 'gpt-4'
42
-
43
- # LLamaIndex Configs
44
- CHUNK_SIZE = 80 # For parser
45
- CHUNK_OVERLAP = 20
46
-
47
- RETRIEVE_TOP_K = 10