-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTODO
95 lines (73 loc) · 3.26 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Unit testing/Checks
-Test bench new API (bench xxx)
+Use remote hdeval prompt support
-Create some unit test for hdlagent
+Use some llm-ollama local or sambanova model in hdlagent and pull tests from hdeval
+We can run the test in hdlagent in llmhdl server
-Add multiple HDLs to the unit test target using HDEval 24a
# SPEC improvements
-Add the "requirement" field in yaml (similar to what Changyang)
+https://arxiv.org/abs/2408.00994
# Reflection Internals
-Gen multiple options (one prompt), add some majority vote (or agent to decide between top-x solutions)
-Do Self-reflect stage:
+https://arxiv.org/abs/2304.07590: "Requirement Analyst" vs "Developer" vs "Tester"
-Check/Eval prompt change to:
+Add reflection. First, you are an expert coder... then Always: ". You are an
expert code reviewer: check the code carefully for style and correctness, and
give constructive feedback on how to improve it.", then reprompt giving
problem, generated code, and reflection to generate the new code.
-Add an optional "clarification pass" when creating a spec. Prompt to start? (Based on https://arxiv.org/abs/2409.00557)
E.g: poetry run ../hdlagent/cli_agent.py start --clarify file.txt
"
You are an AutoGPT, tasked with processing user requests to generate a Verilog
module. Sometimes, the information provided by users may be unclear,
incomplete, or incorrect. Your main responsibility is to determine if the
user’s instructions are sufficiently clear and detailed enough.
1. If user instructions are missing crucial details, pose a question to obtain
the necessary information.
2. If the user’s instructions appear to be incorrect, delve deeper by asking
questions to clarify and rectify the details.
What do you say to the following prompt: Just list the clarification questions.
"
# Grounding Internals
-Add comment to failing line of code before iterating
+ https://arxiv.org/abs/2312.17485 uses the following prompt:
+"Fix the following buggy code snippet according to the suggestion in the "//<Comment> " line. In your response, output the fixed code only"
+ It inserts a comment on the Line of code with the problem
# Model APIs changes
-Add LLMs APIs to use llm (https://llm.datasette.io/en/stable/plugins/directory.html#remote-apis)
+Keep original, but use llm as alternative and access to claude and VertexAI
+Seems to support all but octoai
-Change the google from the complex SDK code to google.generativeai
```
import google.generativeai as genai
import os
genai.configure(api_key=os.environ["GOOGLE_STUDIO_KEY"])
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content("Write a story about a magic backpack.")
print(response.text)
```
or
```
model = genai.GenerativeModel("gemini-1.5-flash")
response = model.generate_content(
"Tell me a story about a magic backpack.",
generation_config=genai.types.GenerationConfig(
# Only one candidate for now.
candidate_count=1,
stop_sequences=["x"],
max_output_tokens=20,
temperature=1.0,
),
)
print(response.text)
```
or
```
model=genai.GenerativeModel(
model_name="gemini-1.5-flash",
system_instruction="You are a cat. Your name is Neko.")
response = model.generate_content("Good morning! How are you?")
print(response.text)
```