not-lain commited on
Commit
7b0f3e3
·
verified ·
1 Parent(s): 782ca10

Update README.md

Browse files

fix code formatting

Files changed (1) hide show
  1. README.md +16 -16
README.md CHANGED
@@ -15,28 +15,28 @@ license: apache-2.0
15
 
16
 
17
  To pull the model via API:
18
-
19
- from huggingface_hub import snapshot_download
20
- snapshot_download("llmware/slim-sql-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
21
-
22
 
23
  Load in your favorite GGUF inference engine, or try with llmware as follows:
 
 
24
 
25
- from llmware.models import ModelCatalog
26
-
27
- # this one line will download the model and run a series of tests
28
- # includes two sample table schema - go to llmware github repo for end-to-end example
29
- ModelCatalog().tool_test_run("slim-sql-tool", verbose=True)
30
-
31
 
32
  Slim models can also be orchestrated as part of multi-model, multi-step LLMfx calls:
 
 
33
 
34
- from llmware.agents import LLMfx
35
-
36
- llm_fx = LLMfx()
37
- llm_fx.load_tool("sql")
38
- response = llm_fx.sql(query, table_schema)
39
-
40
 
41
  Note: please review [**config.json**](https://huggingface.co/llmware/slim-sql-tool/blob/main/config.json) in the repository for prompt wrapping information, details on the model, and full test set.
42
 
 
15
 
16
 
17
  To pull the model via API:
18
+ ```python
19
+ from huggingface_hub import snapshot_download
20
+ snapshot_download("llmware/slim-sql-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
21
+ ```
22
 
23
  Load in your favorite GGUF inference engine, or try with llmware as follows:
24
+ ```python
25
+ from llmware.models import ModelCatalog
26
 
27
+ # this one line will download the model and run a series of tests
28
+ # includes two sample table schema - go to llmware github repo for end-to-end example
29
+ ModelCatalog().tool_test_run("slim-sql-tool", verbose=True)
30
+ ```
 
 
31
 
32
  Slim models can also be orchestrated as part of multi-model, multi-step LLMfx calls:
33
+ ```python
34
+ from llmware.agents import LLMfx
35
 
36
+ llm_fx = LLMfx()
37
+ llm_fx.load_tool("sql")
38
+ response = llm_fx.sql(query, table_schema)
39
+ ```
 
 
40
 
41
  Note: please review [**config.json**](https://huggingface.co/llmware/slim-sql-tool/blob/main/config.json) in the repository for prompt wrapping information, details on the model, and full test set.
42