You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,16 @@ pip install weco
25
25
```
26
26
27
27
## Features
28
+
- Synchronous & Asynchronous client.
29
+
- Batch API
30
+
- Multimodality (Language & Vision)
31
+
- Interpretability (view the reasoning behind outputs)
32
+
33
+
34
+
## What We Offer
28
35
29
36
- The **build** function enables quick and easy prototyping of new functions via LLMs through just natural language. We encourage users to do this through our [web console](https://weco-app.vercel.app/function) for maximum control and ease of use, however, you can also do this through our API as shown in [here](examples/cookbook.ipynb).
30
37
- The **query** function allows you to test and use the newly created function in your own code.
31
-
- We offer asynchronous versions of the above clients.
32
-
- We provide a **batch_query** functions that allows users to batch functions for various inputs as well as multiple inputs for the same function in a query. This is helpful to make a large number of queries more efficiently.
33
-
- We also offer multimodality capabilities. You can now query our client with both **language** AND **vision** inputs!
34
38
35
39
We provide both services in two ways:
36
40
-`weco.WecoAI` client to be used when you want to maintain the same client service across a portion of code. This is better for dense service usage.
task_description="Evaluate, solve and arrive at a numerical answer for the image provided. Perform any additional things if instructed. Provide a json object with 'answer' and 'explanation' keys.",
"""Batch queries a function version with a list of inputs.
515
528
516
529
Parameters
517
530
----------
518
531
fn_name : str
519
532
The name of the function or a list of function names to query.
520
-
521
533
batch_inputs : List[Dict[str, Any]]
522
534
A list of inputs for the functions to query. The input must be a dictionary containing the data to be processed. e.g.,
523
535
when providing for a text input, the dictionary should be {"text_input": "input text"}, for an image input, the dictionary should be {"images_input": ["url1", "url2", ...]}
524
536
and for a combination of text and image inputs, the dictionary should be {"text_input": "input text", "images_input": ["url1", "url2", ...]}.
525
-
526
537
version_number : int, optional
527
538
The version number of the function to query. If not provided, the latest version will be used. Pass -1 to use the latest version.
539
+
return_reasoning : bool, optional
540
+
Whether to return reasoning for the output. Default is False.
0 commit comments