krasserm commited on
Commit
e3f92b6
·
verified ·
1 Parent(s): dfc7776

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -7
README.md CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- language:
3
- - en
4
- ---
5
  This repository contains the index files required for the `SearchWikipediaTool` of the [grammar-based-agents](https://github.com/krasserm/grammar-based-agents) project.
6
 
7
  It is based on the `krasserm/wikipedia-2023-11-en-embed-mxbai-int8-binary` dataset and contains the following files:
@@ -14,9 +14,8 @@ The following code snippet demonstrates how to use the index files with the `Sea
14
 
15
  ```python
16
  from sentence_transformers import CrossEncoder, SentenceTransformer
17
- from gba.tools.search import SearchWikipediaTool
18
- from gba.tools.search import ContentExtractor
19
  from gba.client import Llama3Instruct, LlamaCppClient
 
20
  from gba.utils import Scratchpad
21
 
22
  llm_model = Llama3Instruct(llm=LlamaCppClient(url="http://localhost:8084/completion", temperature=-1))
@@ -30,7 +29,6 @@ search_wikipedia = SearchWikipediaTool(
30
  top_k_nodes=10,
31
  top_k_related_documents=1,
32
  top_k_related_nodes=3,
33
- extractor=ContentExtractor(model=llm_model),
34
  )
35
 
36
  response = search_wikipedia.run(
 
1
+ ---
2
+ language:
3
+ - en
4
+ ---
5
  This repository contains the index files required for the `SearchWikipediaTool` of the [grammar-based-agents](https://github.com/krasserm/grammar-based-agents) project.
6
 
7
  It is based on the `krasserm/wikipedia-2023-11-en-embed-mxbai-int8-binary` dataset and contains the following files:
 
14
 
15
  ```python
16
  from sentence_transformers import CrossEncoder, SentenceTransformer
 
 
17
  from gba.client import Llama3Instruct, LlamaCppClient
18
+ from gba.tools import SearchWikipediaTool
19
  from gba.utils import Scratchpad
20
 
21
  llm_model = Llama3Instruct(llm=LlamaCppClient(url="http://localhost:8084/completion", temperature=-1))
 
29
  top_k_nodes=10,
30
  top_k_related_documents=1,
31
  top_k_related_nodes=3,
 
32
  )
33
 
34
  response = search_wikipedia.run(