-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
CogniSwitch Integration #8466
CogniSwitch Integration #8466
Conversation
- QueryEngine - ToolSpec - Tests - Example Notebook - Inits
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
thanks! let's keep the cogniswitch query engine part here, for the tool spec could you submit to llama-hub instead? we're centralizing all integrations there https://github.com/run-llama/llama-hub
Thanks for the response & guidance @jerryjliu Will remove the tool spec & update the pull request accordingly. |
Removing ToolSpec as per Jerry's recommendation
Hi @jerryjliu, created a related PR in LlamaHub. That would be a dependency in order for this to work. Could you streamline that please? |
Removed CogniswitchToolSpec import & __all__
Hi @jerryjliu, made the changes as you requested. We are now merged with LlamaHub & using that import over here. Do take a look & let us know if anything else is required. Thanks! |
Thanks for the great work! Taking a look to merge this. |
Hey @CogniJT could you allow maintainers to push to the branch? Just want to push some cleanup fixes before I merge the PR. |
hey @Disiok, can you let us know if there is any bug in the code? |
Nits, language
Nits, language
Hi @Disiok, as far I can see there does not seem to be any restrictions in settings. Perhaps you're talking about the llama_index repo access? We don't have permissions to change that. As part of your review, could you leave your comments for changes & we can follow through on those. Thanks! |
@jerryjliu could you please clarify what's required to move ahead? Thank you. |
Just a heads up that we've updated the BaseQueryEngine to its new form subclassing PromptMixin |
hi @jerryjliu I was checking the above checks where linting failed, but in the codespaces from my side the lint had passed successfully, can you please let us know how to resolve this and move forward. Thanks! |
Hey folks, looks like lint is still failing. could you pull the latest main, and make sure you have the pre-commit hooks installed? Thanks! Also it'd be really helpful to allow us to make changes to your branch, so we can quickly fix stuff up on our side. Take a look at https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork to see if this is possible. |
Thanks @Disiok, the link clarifies what you were asking for. However I'm unable to find the below option under this Pull Request
@saiCogniswitch could you look into the linting issues |
hi @Disiok , so I have run the lint with pre-commit hooks installed and the lint has run successfully in the codespaces, currently I have updated the changes accordingly. Let me know if if there is something else that can be done to check the lint thanks. |
Hey folks, here's the specific lint issue:
|
hi @Disiok , thanks for sharing the lint issue, the changes it is showing in the w.r.t the python file name, the change is same for the both "cogniswitch_query_engine.py" and "test_cogniswitch_query_engine.py". Do we have to do something w.r.t that? |
Hi @jerryjliu |
Thanks for the updates! Looks like it's passing CI now. |
Thanks @Disiok for the approval and merge. |
Thanks @Disiok & @jerryjliu for all your help |
@Disiok Would the examples we shared in this PR go into doc.llamaindex.ai? |
* CogniSwitch Integration - QueryEngine - ToolSpec - Tests - Example Notebook - Inits * Delete llama_index/tools/tool_spec/cogniswitch directory Removing ToolSpec as per Jerry's recommendation * Add files via upload * Update __init__.py Removed CogniswitchToolSpec import & __all__ * Nits for CSQueryEngine * updated the files after checking format, linting * updated cogniswitch query engine and notebooks * Update CogniswitchQueryEngine.ipynb Nits, language * Update CogniswitchToolSpec.ipynb Nits, language * updated the cogniswitch_query_engine file * updated the test cogniswitch_query_engine filename * removed unecessary imports from the code files --------- Co-authored-by: JT <JoshuaT@aikonlabs.com> Co-authored-by: saiCogniswitch <145636106+saiCogniswitch@users.noreply.github.com>
Added Components
Description
This provides a connector to the CogniSwitch platform within LlamaIndex.
What is CogniSwitch?
CogniSwitch enhances the reliability of Generative AI applications for enterprises. It achieves this by leveraging AI to gather and organize knowledge from documented sources, eliminating biases and hallucinations in AI responses. The platform allows experts to curate and visualize this knowledge before it is published. The CogniSwitch API enables Gen AI applications to access this knowledge as needed, ensuring reliability. It seamlessly integrates with top Generative AI technologies and offers customized solutions for different business functions within an enterprise.
Why CogniSwitch?
Use CogniSwitch to build production ready applications that can consume, organize and retrieve knowledge flawlessly. Using the framework of your choice, in this case Llama-Index, CogniSwitch helps alleviate the stress of decision making when it comes to, choosing the right storage and retrieval formats. It also eradicates reliability issues and hallucinations when it comes to responses that are generated. Get started by interacting with your knowledge in just three simple steps
Type of Change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Suggested Checklist:
make format; make lint
to appease the lint gods