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

Improvement/sambanova integration sambastudio #16930

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

rodrigo-92
Copy link
Contributor

@rodrigo-92 rodrigo-92 commented Nov 12, 2024

Description

Integration of SambaStudio to the sambanova LLM integration module in LlamaIndex.

New Package?

Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

  • Yes
  • No

Version Bump?

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

  • Yes
  • No

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

  • I added new unit tests to cover this change
  • I believe this change is already covered by existing unit tests

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks.
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I ran make format; make lint to appease the lint gods

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Nov 12, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rodrigo-92
Copy link
Contributor Author

hey @nerdai, hope you're doing fine. Here's the SambaStudio integration that I talked to you about days before. Please take a look and let me know if you have any questions or observations where I can help. Thanks in advance!

@@ -9,10 +9,10 @@ skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"

[tool.llamahub]
contains_example = false
import_path = "llama_index.llms.sambanovacloud"
import_path = "llama_index.llms.sambanova"
Copy link
Collaborator

Choose a reason for hiding this comment

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

any reason to rename all the imports and names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hey @logan-markewich I work for SambaNova and we noticed that the last author did an integration that wasn't working. We're very interested in this integration and would like to have the proper generic name so users can choose whether to use SambaNovaCloud or SambaStudio. Please let us know if there's a way to accomplish this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately, someone published under the name llama-index-llms-sambanova already, so unless we found them and got them to transfer the name to our account (probably not easy), thats not an option

I would suggest either adding another llama-index-llms-sambanovastudio package. Or maybe there's some other alternative name that would work for both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, that's unfortunate. No problem, we'll choose another name to have both classes in one single base file. Thanks for your suggestions.

name = "llama-index-llms-sambanovacloud"
authors = ["Rodrigo Maldonado <[email protected]>"]
description = "llama-index llms sambanova cloud and sambastudio integration"
name = "llama-index-llms-sambanova"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We cannot publish under this name, as someone published something else under this name. This is why everything was renamed to samba nova cloud

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could coauthoring resolve the issue? I know the last author introduced SambaNova to LlamaIndex, but our endpoints changed and these are our current ones active and updated

Copy link
Collaborator

Choose a reason for hiding this comment

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

(see above comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, will undo changes in sambanova and change sambanovacloud to another more generic name

@logan-markewich
Copy link
Collaborator

@rodrigo-92 not sure if you missed this, but this is already published and released?
https://docs.llamaindex.ai/en/latest/examples/llm/sambanova/

@rodrigo-92
Copy link
Contributor Author

@logan-markewich awesome! although in this PR we're updating the notebook including SambaStudio. Is that ok?

@logan-markewich
Copy link
Collaborator

@rodrigo-92 thats fine -- but lets edit the PR to keep the same class names/folder names etc?

Also, I noticed the notebook makes some mentions of the langchain-index-integrations package -- I think this is some leftover copy-pasta

@rodrigo-92
Copy link
Contributor Author

ok langchain mentions removed in notebook. What do you mean keeping the same class names/folder names?

@logan-markewich
Copy link
Collaborator

@rodrigo-92 I meant, you renamed all the folders to sambanova instead of sambanovacloud

@rodrigo-92
Copy link
Contributor Author

hey @logan-markewich please let me know if the changes work for you and if there's anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants