Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
683e308
Adding NVIDIA Adapter Playground
chrisalexiuk-nvidia Mar 14, 2024
aba4181
Merge branch 'run-llama:main' into add_feature_nvidia_api_playground_…
chrisalexiuk-nvidia Mar 14, 2024
a99917d
LlamaIndex NVIDIA API Playground Adapter
chrisalexiuk-nvidia Mar 18, 2024
6f78863
Merge branch 'add_feature_nvidia_api_playground_connector_llm' of git…
chrisalexiuk-nvidia Mar 18, 2024
7e72f89
Adding more test cases
chrisalexiuk-nvidia Mar 27, 2024
19c2143
Merge branch 'run-llama:main' into add_feature_nvidia_api_playground_…
chrisalexiuk-nvidia Mar 27, 2024
dc68690
Merge branch 'run-llama:main' into add_feature_nvidia_api_playground_…
chrisalexiuk-nvidia Apr 1, 2024
f96d2f5
Improving test notebook documentation
chrisalexiuk-nvidia Apr 2, 2024
afa245f
Merge branch 'add_feature_nvidia_api_playground_connector_llm' of git…
chrisalexiuk-nvidia Apr 2, 2024
a43f5a5
Merge branch 'run-llama:main' into add_feature_nvidia_api_playground_…
chrisalexiuk-nvidia Apr 2, 2024
f898a8c
Refactored playground to API Catalog
chrisalexiuk-nvidia Apr 3, 2024
9b3285a
Merge branch 'add_feature_nvidia_api_playground_connector_llm' of git…
chrisalexiuk-nvidia Apr 3, 2024
4d12453
Removed Cohere Models
chrisalexiuk-nvidia Apr 4, 2024
773871a
Adding max context length
chrisalexiuk-nvidia Apr 4, 2024
edec0fd
Fixing incorrect references and API key standardization
chrisalexiuk-nvidia Apr 4, 2024
83c983f
Adding user-agent for tool reporting
chrisalexiuk-nvidia Apr 4, 2024
0b93fc0
Added Pytest tests
chrisalexiuk-nvidia Apr 19, 2024
d68c565
Added new model references
chrisalexiuk-nvidia Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 153 additions & 0 deletions llama-index-integrations/llms/llama-index-llms-nvidia/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
llama_index/_static
.DS_Store
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
bin/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
etc/
include/
lib/
lib64/
parts/
sdist/
share/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
.ruff_cache

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints
notebooks/

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
pyvenv.cfg

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Jetbrains
.idea
modules/
*.swp

# VsCode
.vscode

# pipenv
Pipfile
Pipfile.lock

# pyright
pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_sources()
17 changes: 17 additions & 0 deletions llama-index-integrations/llms/llama-index-llms-nvidia/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GIT_ROOT ?= $(shell git rev-parse --show-toplevel)

help: ## Show all Makefile targets.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'

format: ## Run code autoformatters (black).
pre-commit install
git ls-files | xargs pre-commit run black --files

lint: ## Run linters: pre-commit (black, ruff, codespell) and mypy
pre-commit install && git ls-files | xargs pre-commit run --show-diff-on-failure --files

test: ## Run tests via pytest.
pytest tests

watch-docs: ## Build and watch documentation.
sphinx-autobuild docs/ docs/_build/html --open-browser --watch $(GIT_ROOT)/llama_index/
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# LlamaIndex Llms Integration: Nvidia-Ai-Playground
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from llama_index.llms.nvidia.base import NVIDIA

__all__ = ["NVIDIA"]
Loading