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(rai_cli): improved UX #189

Merged
merged 7 commits into from
Sep 5, 2024
Merged

feat(rai_cli): improved UX #189

merged 7 commits into from
Sep 5, 2024

Conversation

maciejmajek
Copy link
Member

Purpose

This PR improves user's experience during building documentation vector store and robot identity.

Proposed Changes

rai_cli now informs the user about possible costs during build.

Issues

Testing

  • Tested a few times by running
poetry run parse_whoami_package src/examples/rosbot-xl-demo/src/rosbot_xl_whoami/description/

To recreate testing environment, run:

vcs import < demos.repos

src/rai/rai/cli/rai_cli.py Outdated Show resolved Hide resolved

def build_docs_vector_store():
logger.info("Building the robot docs vector store...")
faiss_index = FAISS.from_documents(docs, OpenAIEmbeddings())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, we should avoid hard OpenAI dependency and make it interchangeable with OpenSource solution

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

src/rai/rai/cli/rai_cli.py Outdated Show resolved Hide resolved
Copy link
Member

@boczekbartek boczekbartek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maciejmajek 1 minor fix. Besides that I've tested the code and it LGTM!

src/rai/rai/cli/rai_cli.py Outdated Show resolved Hide resolved
@maciejmajek maciejmajek merged commit bcc9e3b into development Sep 5, 2024
4 checks passed
@maciejmajek maciejmajek deleted the feat/rai-cli-ux branch September 5, 2024 12:29
maciejmajek added a commit that referenced this pull request Sep 18, 2024
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.

2 participants