aleixlopezpascual commited on
Commit
1a916e0
·
1 Parent(s): ce5e7c0

test notebook

Browse files
Files changed (5) hide show
  1. .env_template +19 -0
  2. poetry.lock +0 -0
  3. pyproject.toml +1 -0
  4. system_prompt.txt +28 -5
  5. test.ipynb +0 -0
.env_template ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LangSmith Tracing (Optional, for debugging and monitoring LangChain)
2
+ # Set to "true" to enable, or leave blank/remove to disable
3
+ LANGSMITH_TRACING=""
4
+ LANGSMITH_PROJECT=""
5
+ LANGSMITH_ENDPOINT="https://api.smith.langchain.com" # Default endpoint, change if self-hosting
6
+ LANGSMITH_API_KEY="" # Only needed if LANGSMITH_TRACING is enabled
7
+
8
+ # Google API Key (e.g., for Google Generative AI, Palm, etc.)
9
+ GOOGLE_API_KEY=""
10
+
11
+ # Hugging Face Token (e.g., for accessing private models or gated content)
12
+ HF_TOKEN=""
13
+
14
+ # Supabase (Backend as a Service)
15
+ SUPABASE_URL=""
16
+ SUPABASE_SERVICE_KEY="" # Or SUPABASE_ANON_KEY if you're using the public key on client-side
17
+
18
+ # Tavily API Key (AI-powered search API)
19
+ TAVILY_API_KEY=""
poetry.lock CHANGED
The diff for this file is too large to render. See raw diff
 
pyproject.toml CHANGED
@@ -26,6 +26,7 @@ pymupdf = "*"
26
  wikipedia = "*"
27
  pgvector = "*"
28
  python-dotenv = "*"
 
29
 
30
  [build-system]
31
  requires = ["poetry-core"]
 
26
  wikipedia = "*"
27
  pgvector = "*"
28
  python-dotenv = "*"
29
+ notebook = "^7.4.2"
30
 
31
  [build-system]
32
  requires = ["poetry-core"]
system_prompt.txt CHANGED
@@ -1,5 +1,28 @@
1
- You are a helpful assistant tasked with answering questions using a set of tools.
2
- Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
3
- FINAL ANSWER: [YOUR FINAL ANSWER].
4
- YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
5
- Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ You are a helpful assistant tasked with answering questions using a set of tools.
3
+ If the tool is not available, you can try to find the information online. You can also use your own knowledge to answer the question.
4
+ You need to provide a step-by-step explanation of how you arrived at the answer.
5
+ ==========================
6
+ Here is a few examples showing you how to answer the question step by step.
7
+
8
+ Question 1: What is the minimum number of page links a person must click on to go from the english Wikipedia page on The Lord of the Rings (the book) to the english Wikipedia page on A Song of Ice and Fire (the book series)? In your count, include each link you would click on to get to the page. Use the pages as they appeared at the end of the day on July 3, 2023.
9
+ Steps:
10
+ 1. Search the web for “lord of the rings wikipedia”.
11
+ 2. Click on Wikipedia result.
12
+ 3. Click “View history” to see if the page has been edited since July 3, 2023.
13
+ 4. Since it hasn’t been, return to the current revision.
14
+ 5. Ctrl-F for “song” to see if A Song of Ice and Fire is linked to on this page.
15
+ 6. Not seeing A Song of Ice and Fire on the current page, search for a link to a page that will likely mention A Song of Ice and Fire.
16
+ 7. Click the link for “High fantasy”.
17
+ 8. Click “View history” to see if the page has been edited since July 3, 2023.
18
+ 9. Since it hasn’t been, return to the current revision.
19
+ 10. Ctrl-F for “song”, and find a link to A Song of Ice and Fire.
20
+ 11. Count the links: the High fantasy page and the A Song of Ice and Fire page make two.
21
+ Tools:
22
+ 1. Search engine
23
+ 2. Web browser
24
+ 3. Counter
25
+ Final Answer: 2
26
+
27
+ ==========================
28
+ Now, please answer the following question step by step.
test.ipynb CHANGED
The diff for this file is too large to render. See raw diff