Commit graph

10,867 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
ad24cdc1dd Update README.md 2023-04-23 14:37:11 -03:00
Paul Lockett
b1971570c9 Correct run instructions
Fix this for future users so they can get it up and running without having to probe the  GitHub forum
2023-04-23 14:37:11 -03:00
Gabriel Almeida
ebc1f6a0df feat(api): add callback handler for streaming LLM responses
Add a new file `callback.py` that contains a new class `StreamingLLMCallbackHandler` that inherits from `AsyncCallbackHandler`. This class handles streaming LLM responses. It has a constructor that takes a `websocket` parameter and sets it as an instance variable. It also has an `on_llm_new_token` method that takes a `token` parameter and sends a `ChatResponse` object to the `websocket` instance variable.

Update `chat_manager.py` to import the new `StreamingLLMCallbackHandler` class. Add a new function `try_setting_streaming_options` that takes a `langchain_object` and a `websocket` parameter. This function checks if the `llm` attribute of the `langchain_object` is an instance of `OpenAI`, `ChatOpenAI`, `AzureOpenAI`, or `AzureChatOpenAI`. If it is, it sets the
2023-04-23 14:31:21 -03:00
Robert Wilkins III
b9a9892db6 layout changes 2023-04-21 12:22:12 -03:00
Robert Wilkins III
e90b036b01 remove the nats 2023-04-21 12:22:12 -03:00
Robert Wilkins III
adc93c7902 improve grammer and remove nat 2023-04-21 12:22:12 -03:00
Robert Wilkins III
dada24a5e6 add spot instance support and pricing 2023-04-21 12:22:12 -03:00
Robert Wilkins III
6a59d64a0d remove redundant wording 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b6ae41eef0 more styling 2023-04-21 12:22:12 -03:00
Robert Wilkins III
56e4ae1fcd add styling 2023-04-21 12:22:12 -03:00
Robert Wilkins III
57d83740f1 improve readability 2023-04-21 12:22:12 -03:00
Robert Wilkins III
5a7072175f move trophy toward end of walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
37bdafa9db clarify notes to connect to vm 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b9a0e55d43 remove input tag 2023-04-21 12:22:12 -03:00
Robert Wilkins III
f46e27d1f0 vars and trophies 2023-04-21 12:22:12 -03:00
Robert Wilkins III
d310a8172f provide user with link to langflow server 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b54b0f0904 var expansion alt test 2023-04-21 12:22:12 -03:00
Robert Wilkins III
c4ebb0a3f6 var expansion again 2023-04-21 12:22:12 -03:00
Robert Wilkins III
90633c3915 revert var expansion test 2023-04-21 12:22:12 -03:00
Robert Wilkins III
7ef97e1334 testing var expansion 2023-04-21 12:22:12 -03:00
Robert Wilkins III
6efa1b7377 set project config 2023-04-21 12:22:12 -03:00
Robert Wilkins III
98be8f87e4 remove login prompt for ephemeral cloudshell 2023-04-21 12:22:12 -03:00
Robert Wilkins III
9c9b69db59 add cloudshell repo trust advisory 2023-04-21 12:22:12 -03:00
Robert Wilkins III
08a1739fa7 force gcp login in ephemeral cloudshell 2023-04-21 12:22:12 -03:00
Robert Wilkins III
9a06ff54c7 match bash script to walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
bfdbabed55 fix bash command launch 2023-04-21 12:22:12 -03:00
Robert Wilkins III
e5aece49bf remove comments that show up in walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
aeabaa32cd remove scripted steps from walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
50b24f9443 configure cloudshell to run walkthrough 2023-04-21 12:22:12 -03:00
Robert Wilkins III
ff3817903f create setup files and GCP tutorial 2023-04-21 12:22:12 -03:00
Robert Wilkins III
19193d21e0 fix apt confirms, heredoc vars, add if statements 2023-04-21 12:22:12 -03:00
Robert Wilkins III
5a51306153 adding machine type to VM create 2023-04-21 12:22:12 -03:00
Robert Wilkins III
b946edb3d1 Allow IAP 2023-04-21 12:22:12 -03:00
Robert Wilkins III
9274cb9ae0 check and create VPC and subnet 2023-04-21 12:22:12 -03:00
Robert Wilkins III
d6b179b7ce Add comments to clarify code 2023-04-21 12:22:12 -03:00
Robert Wilkins III
7011721c3c Adjust firewall to allow port 8080 2023-04-21 12:22:12 -03:00
Robert Wilkins III
2465318f77 Add steps to provision GCP VM serving langflow 2023-04-21 12:22:12 -03:00
Petru Molla
801ff57dc0 Update loading.py 2023-04-20 16:06:22 -03:00
Gabriel Luiz Freitas Almeida
ded527a64a Update loading.py 2023-04-20 16:06:22 -03:00
Petru Molla
68f69e878e Using an exported Flow JSON file with load_flow_from_json("path/to/flow.json") returns
"UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 9465: character maps to
<undefined>".

Specifying the encodint type in the function helps to fix that error.
2023-04-20 16:06:22 -03:00
Ibis Prevedello
46e76c8ca4 feat: add SQLDatabaseChain
Close #173
2023-04-20 15:17:23 -03:00
Ibis Prevedello
843ae8efc5 feat: add extra tools and utilities 2023-04-20 15:17:23 -03:00
Ibis Prevedello
571f407ef3 refac: refactor tools and add QuerySQLDataBaseTool 2023-04-20 15:17:23 -03:00
Gabriel Almeida
5169c0bc27 feat(chat_manager.py): add support for sending file responses
fix(schemas.py): add validation for file response type and data type
test(test_websocket.py): remove data and data_type fields from ChatResponse messages in tests
2023-04-20 11:09:42 -03:00
Gabriel Almeida
3da30cc5bf refactor(cache): move cache functionality to a separate class
feat(cache): add support for multiple clients and context manager to set client_id
feat(cache): add observer pattern to notify on cache changes
feat(cache): add async observer pattern to notify on cache changes in async functions
feat(cache): add methods to add pandas DataFrame or Series and PIL Image to cache
feat(cache): add method to get an object from cache by key
feat(cache): add method to get the last added item in cache
2023-04-20 11:09:11 -03:00
Robert Wilkins III
9869c59e6d layout changes 2023-04-20 05:14:37 +00:00
Robert Wilkins III
7e3ea10719 remove the nats 2023-04-20 05:11:28 +00:00
Robert Wilkins III
de5ed466d7 improve grammer and remove nat 2023-04-20 05:10:38 +00:00
Robert Wilkins III
207f1b0399 add spot instance support and pricing 2023-04-20 04:43:26 +00:00
Robert Wilkins III
573f0d6ee7 remove redundant wording 2023-04-20 03:54:58 +00:00