Skip to content

Commit

Permalink
Removes command_line from core (#10772)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdai authored Feb 21, 2024
1 parent 36477cb commit 978cbac
Show file tree
Hide file tree
Showing 47 changed files with 11,342 additions and 10,399 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## [0.10.9] - 2024-02-20

- add llama-index-cli dependency

## [0.10.7] - 2024-02-19

### New Features
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Contributing a new Reader or Tool involves submitting a new package within
the [llama-index-integrations/readers](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers) and [llama-index-integrations/tools](https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/tools),
folders respectively.

The LlamaIndex command-line tool can be used to initialize new Packs and Integrations.
The LlamaIndex command-line tool can be used to initialize new Packs and Integrations. (NOTE: `llama-index-cli` comes installed with `llama-index`.)

```shell
cd ./llama-index-packs
Expand Down
4 changes: 4 additions & 0 deletions llama-index-cli/CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [0.1.2post1] - 2024-02-20

- Last merge from main

## [0.1.2] - 2024-02-20

- Fix python requirement in pyproject.toml
Expand Down
9 changes: 6 additions & 3 deletions llama-index-cli/llama_index/cli/rag/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@
from typing import Any, Callable, Dict, Optional, Union, cast

from llama_index.core import (
Response,
ServiceContext,
SimpleDirectoryReader,
VectorStoreIndex,
)
from llama_index.core.base.embeddings.base import BaseEmbedding
from llama_index.core.base.response.schema import RESPONSE_TYPE, StreamingResponse
from llama_index.core.base.response.schema import (
RESPONSE_TYPE,
StreamingResponse,
Response,
)
from llama_index.core.bridge.pydantic import BaseModel, Field, validator
from llama_index.core.chat_engine import CondenseQuestionChatEngine
from llama_index.core.indices.service_context import ServiceContext
from llama_index.core.ingestion import IngestionPipeline
from llama_index.core.llms import LLM
from llama_index.core.query_engine import CustomQueryEngine
Expand Down
2 changes: 1 addition & 1 deletion llama-index-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ maintainers = [
name = "llama-index-cli"
packages = [{include = "llama_index/"}]
readme = "README.md"
version = "0.1.2"
version = "0.1.2post1"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down
2 changes: 1 addition & 1 deletion llama-index-core/llama_index/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Init file of LlamaIndex."""

__version__ = "0.10.8.post1"
__version__ = "0.10.9"

import logging
from logging import NullHandler
Expand Down
1 change: 1 addition & 0 deletions llama-index-core/llama_index/core/command_line/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Deprecated. CLI is now its own package llama-index-cli
273 changes: 0 additions & 273 deletions llama-index-core/llama_index/core/command_line/command_line.py

This file was deleted.

This file was deleted.

Empty file.
Loading

0 comments on commit 978cbac

Please sign in to comment.