-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add multi-agent structured/unstructured chat #19
base: main
Are you sure you want to change the base?
Conversation
config = ConfigProvider.create_config(ConfigType.OPENAI, host_config=host_config) | ||
agent = NyxLangChain(config) | ||
dataset = agent.get_subscribed_data() | ||
structed = [d for d in dataset if d.content_type in STRUCTED_DATA_CONTENT_TYPES] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
structured / unstructured
|
||
- Firstly create a virtual enviornment | ||
- `pip install -r requirements.txt` to install requirements | ||
- run `streamlit run main.py` and this will open your browser on the chat window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
streamlit run chat.py
st.markdown(message["content"]) | ||
|
||
# React to user input | ||
if prompt := st.chat_input("What is up?"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I help you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Installed & ran ok. Although I would just ask in team chat about including an extra non-conformant dependency/style of example (streamlit), or whether we should consider moving them all to streamlit for a nicer UX
Marking as draft since client SDK has changed |
A quick streamlit app to show how combining the output of NyxLangChain and the Parser.query function, can be used to build a application allow you to talk to structured and unstructured data.
streamlit-chat-2024-09-27-22-09-64.webm