apple muncy commited on
Commit
41685b3
·
1 Parent(s): 10470c9

restoring reteaver

Browse files

Signed-off-by: apple muncy <[email protected]>

Files changed (2) hide show
  1. app.py +3 -2
  2. retriever.py +2 -0
app.py CHANGED
@@ -44,10 +44,11 @@ chat = ChatHuggingFace(llm=llm, verbose=True)
44
 
45
  # Define available tools
46
  tools = [
47
- # load_guest_dataset,
48
  search_tool,
49
  weather_info_tool,
50
- hub_stats_tool
 
51
  ]
52
 
53
  # Bind tools to the chat model
 
44
 
45
  # Define available tools
46
  tools = [
47
+ #
48
  search_tool,
49
  weather_info_tool,
50
+ hub_stats_tool,
51
+ load_guest_dataset
52
  ]
53
 
54
  # Bind tools to the chat model
retriever.py CHANGED
@@ -4,6 +4,7 @@ from langchain.docstore.document import Document
4
  import datasets
5
 
6
  class GuestInfoRetrieverTool(Tool):
 
7
  name = "guest_info_retriever"
8
 
9
  description = "Retrieves detailed information about gala guests based on their name or relation."
@@ -28,6 +29,7 @@ class GuestInfoRetrieverTool(Tool):
28
 
29
 
30
  def load_guest_dataset():
 
31
  # Load the dataset
32
  guest_dataset = datasets.load_dataset("agents-course/unit3-invitees", split="train")
33
  # Convert dataset entries into Document objects
 
4
  import datasets
5
 
6
  class GuestInfoRetrieverTool(Tool):
7
+ """retrievs guest data"""
8
  name = "guest_info_retriever"
9
 
10
  description = "Retrieves detailed information about gala guests based on their name or relation."
 
29
 
30
 
31
  def load_guest_dataset():
32
+ """Get data set """
33
  # Load the dataset
34
  guest_dataset = datasets.load_dataset("agents-course/unit3-invitees", split="train")
35
  # Convert dataset entries into Document objects