Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andyantrim
Copy link
Contributor

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

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]
Copy link
Contributor

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
Copy link
Contributor

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?"):
Copy link
Contributor

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?

conbon
conbon previously approved these changes Sep 30, 2024
Copy link
Contributor

@conbon conbon left a 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

@vtermanis vtermanis marked this pull request as draft October 22, 2024 12:00
@vtermanis vtermanis dismissed conbon’s stale review October 22, 2024 12:00

Client SDK has changed

@vtermanis
Copy link
Member

Marking as draft since client SDK has changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants