Skip to content

Commit 718ef24

Browse files
v0.10.44 (run-llama#14056)
1 parent bddd160 commit 718ef24

File tree

11 files changed

+361
-182
lines changed

11 files changed

+361
-182
lines changed

CHANGELOG.md

+82
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,87 @@
11
# ChangeLog
22

3+
## [2024-06-10]
4+
5+
### `llama-index-core` [0.10.44]
6+
7+
- Add WEBP and GIF to supported image types for SimpleDirectoryReader (#14038)
8+
- refactor: add spans to abstractmethods via mixin (#14003)
9+
- Adding streaming support for SQLAutoVectorQueryEngine (#13947)
10+
- add option to specify embed_model to NLSQLTableQueryEngine (#14006)
11+
- add spans for multimodal LLMs (#13966)
12+
- change to compact in auto prev next (#13940)
13+
- feat: add exception events for streaming errors (#13917)
14+
- feat: add spans for tools (#13916)
15+
16+
### `llama-index-embeddings-azure-openai` [0.1.10]
17+
18+
- Fix error when using azure_ad without setting the API key (#13970)
19+
20+
### `llama-index-embeddings-jinaai` [0.2.0]
21+
22+
- add Jina Embeddings MultiModal (#13861)
23+
24+
### `llama-index-embeddings-nomic` [0.3.0]
25+
26+
- Add Nomic multi modal embeddings (#13920)
27+
28+
### `llama-index-graph-stores-neo4j` [0.2.3]
29+
30+
- ensure cypher returns list before iterating (#13938)
31+
32+
### `llama-index-llms-ai21` [0.2.0]
33+
34+
- Add AI21 Labs Jamba-Instruct Support (#14030)
35+
36+
### `llama-index-llms-deepinfra` [0.1.2]
37+
38+
- fix(deepinfrallm): default max_tokens (#13998)
39+
40+
### `llama-index-llms-vllm` [0.1.8]
41+
42+
- correct `__del__()` Vllm (#14053)
43+
44+
### `llama-index-packs-zenguard` [0.1.0]
45+
46+
- Add ZenGuard llamapack (#13959)
47+
48+
### `llama-index-readers-google` [0.2.7]
49+
50+
- fix how class attributes are set in google drive reader (#14022)
51+
- Add Google Maps Text Search Reader (#13884)
52+
53+
### `llama-index-readers-jira` [0.1.4]
54+
55+
- Jira personal access token with hosted instances (#13890)
56+
57+
### `llama-index-readers-mongodb` [0.1.6]
58+
59+
- set document ids when loading (#14000)
60+
61+
### `llama-index-retrievers-duckdb-retriever` [0.1.0]
62+
63+
- Add DuckDBRetriever (#13929)
64+
65+
### `llama-index-vector-stores-chroma` [0.1.9]
66+
67+
- Add inclusion filter to chromadb (#14010)
68+
69+
### `llama-index-vector-stores-lancedb` [0.1.5]
70+
71+
- Fix LanceDBVectorStore `add()` logic (#13993)
72+
73+
### `llama-index-vector-stores-milvus` [0.1.17]
74+
75+
- Support all filter operators for Milvus vector store (#13745)
76+
77+
### `llama-index-vector-stores-postgres` [0.1.10]
78+
79+
- Broaden SQLAlchemy support in llama-index-vector-stores-postgres to 1.4+ (#13936)
80+
81+
### `llama-index-vector-stores-qdrant` [0.2.9]
82+
83+
- Qdrant: Create payload index for `doc_id` (#14001)
84+
385
## [2024-06-02]
486

587
### `llama-index-core` [0.10.43]

docs/docs/CHANGELOG.md

+82
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,87 @@
11
# ChangeLog
22

3+
## [2024-06-10]
4+
5+
### `llama-index-core` [0.10.44]
6+
7+
- Add WEBP and GIF to supported image types for SimpleDirectoryReader (#14038)
8+
- refactor: add spans to abstractmethods via mixin (#14003)
9+
- Adding streaming support for SQLAutoVectorQueryEngine (#13947)
10+
- add option to specify embed_model to NLSQLTableQueryEngine (#14006)
11+
- add spans for multimodal LLMs (#13966)
12+
- change to compact in auto prev next (#13940)
13+
- feat: add exception events for streaming errors (#13917)
14+
- feat: add spans for tools (#13916)
15+
16+
### `llama-index-embeddings-azure-openai` [0.1.10]
17+
18+
- Fix error when using azure_ad without setting the API key (#13970)
19+
20+
### `llama-index-embeddings-jinaai` [0.2.0]
21+
22+
- add Jina Embeddings MultiModal (#13861)
23+
24+
### `llama-index-embeddings-nomic` [0.3.0]
25+
26+
- Add Nomic multi modal embeddings (#13920)
27+
28+
### `llama-index-graph-stores-neo4j` [0.2.3]
29+
30+
- ensure cypher returns list before iterating (#13938)
31+
32+
### `llama-index-llms-ai21` [0.2.0]
33+
34+
- Add AI21 Labs Jamba-Instruct Support (#14030)
35+
36+
### `llama-index-llms-deepinfra` [0.1.2]
37+
38+
- fix(deepinfrallm): default max_tokens (#13998)
39+
40+
### `llama-index-llms-vllm` [0.1.8]
41+
42+
- correct `__del__()` Vllm (#14053)
43+
44+
### `llama-index-packs-zenguard` [0.1.0]
45+
46+
- Add ZenGuard llamapack (#13959)
47+
48+
### `llama-index-readers-google` [0.2.7]
49+
50+
- fix how class attributes are set in google drive reader (#14022)
51+
- Add Google Maps Text Search Reader (#13884)
52+
53+
### `llama-index-readers-jira` [0.1.4]
54+
55+
- Jira personal access token with hosted instances (#13890)
56+
57+
### `llama-index-readers-mongodb` [0.1.6]
58+
59+
- set document ids when loading (#14000)
60+
61+
### `llama-index-retrievers-duckdb-retriever` [0.1.0]
62+
63+
- Add DuckDBRetriever (#13929)
64+
65+
### `llama-index-vector-stores-chroma` [0.1.9]
66+
67+
- Add inclusion filter to chromadb (#14010)
68+
69+
### `llama-index-vector-stores-lancedb` [0.1.5]
70+
71+
- Fix LanceDBVectorStore `add()` logic (#13993)
72+
73+
### `llama-index-vector-stores-milvus` [0.1.17]
74+
75+
- Support all filter operators for Milvus vector store (#13745)
76+
77+
### `llama-index-vector-stores-postgres` [0.1.10]
78+
79+
- Broaden SQLAlchemy support in llama-index-vector-stores-postgres to 1.4+ (#13936)
80+
81+
### `llama-index-vector-stores-qdrant` [0.2.9]
82+
83+
- Qdrant: Create payload index for `doc_id` (#14001)
84+
385
## [2024-06-02]
486

587
### `llama-index-core` [0.10.43]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
::: llama_index.packs.zenguard
2+
options:
3+
members:
4+
- ZenGuardPack

docs/docs/api_reference/readers/google.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
- GoogleDocsReader
77
- GoogleDriveReader
88
- GoogleKeepReader
9+
- GoogleMapsTextSearchReader
910
- GoogleSheetsReader

docs/mkdocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ nav:
119119
- ./examples/cookbooks/llama3_cookbook_groq.ipynb
120120
- ./examples/cookbooks/llama3_cookbook_ollama_replicate.ipynb
121121
- ./examples/cookbooks/codestral.ipynb
122+
- ./examples/cookbooks/prometheus2_cookbook.ipynb
122123
- Customization:
123124
- ./examples/customization/streaming/chat_engine_condense_question_stream_response.ipynb
124125
- ./examples/customization/streaming/SimpleIndexDemo-streaming.ipynb
@@ -160,6 +161,7 @@ nav:
160161
- ./examples/data_connectors/simple_directory_reader_remote_fs.ipynb
161162
- ./examples/data_connectors/GoogleDriveDemo.ipynb
162163
- ./examples/data_connectors/upstage.ipynb
164+
- ./examples/data_connectors/GoogleMapsTextSearchReaderDemo.ipynb
163165
- Discover LlamaIndex:
164166
- ./examples/discover_llamaindex/document_management/Discord_Thread_Management.ipynb
165167
- Docstores:
@@ -373,6 +375,7 @@ nav:
373375
- ./examples/multi_modal/image_to_image_retrieval.ipynb
374376
- ./examples/multi_modal/anthropic_multi_modal.ipynb
375377
- ./examples/multi_modal/gpt4o_mm_structured_outputs.ipynb
378+
- ./examples/multi_modal/multi_modal_rag_nomic.ipynb
376379
- Multi-Tenancy:
377380
- ./examples/multi_tenancy/multi_tenancy_rag.ipynb
378381
- Node Parsers & Text Splitters:
@@ -949,6 +952,7 @@ nav:
949952
- ./api_reference/packs/vanna.md
950953
- ./api_reference/packs/vectara_rag.md
951954
- ./api_reference/packs/voyage_query_engine.md
955+
- ./api_reference/packs/zenguard.md
952956
- ./api_reference/packs/zephyr_query_engine.md
953957
- Memory:
954958
- ./api_reference/memory/chat_memory_buffer.md
@@ -1959,6 +1963,7 @@ plugins:
19591963
- ../llama-index-integrations/llms/llama-index-llms-oci-genai
19601964
- ../llama-index-integrations/readers/llama-index-readers-azure-devops
19611965
- ../llama-index-integrations/retrievers/llama-index-retrievers-duckdb-retriever
1966+
- ../llama-index-packs/llama-index-packs-zenguard
19621967
- redirects:
19631968
redirect_maps:
19641969
./api/llama_index.vector_stores.MongoDBAtlasVectorSearch.html: api_reference/storage/vector_store/mongodb.md

llama-index-core/llama_index/core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Init file of LlamaIndex."""
22

3-
__version__ = "0.10.43"
3+
__version__ = "0.10.44"
44

55
import logging
66
from logging import NullHandler

llama-index-core/llama_index/core/indices/property_graph/sub_retrievers/text_to_cypher.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
DEFAULT_RESPONSE_TEMPLATE = (
1111
"Generated Cypher query:\n{query}\n\n" "Cypher Response:\n{response}"
1212
)
13-
DEFAULT_ALLOWED_FIELDS = ["text", "label", "type"]
1413

1514

1615
class TextToCypherRetriever(BasePGRetriever):
@@ -59,7 +58,7 @@ def __init__(
5958
text_to_cypher_template or graph_store.text_to_cypher_template
6059
)
6160
self.cypher_validator = cypher_validator
62-
self.allowed_output_fields = allowed_output_fields or DEFAULT_ALLOWED_FIELDS
61+
self.allowed_output_fields = allowed_output_fields
6362
super().__init__(graph_store=graph_store, include_text=False)
6463

6564
def _parse_generated_cyher(self, cypher_query: str) -> str:
@@ -72,7 +71,10 @@ def _clean_query_output(self, query_output: Any) -> Any:
7271
if isinstance(query_output, dict):
7372
filtered = {}
7473
for key, value in query_output.items():
75-
if key in self.allowed_output_fields:
74+
if (
75+
key in self.allowed_output_fields
76+
or self.allowed_output_fields is None
77+
):
7678
filtered[key] = value
7779
elif isinstance(value, (dict, list)):
7880
filtered_value = self._clean_query_output(value)
@@ -99,7 +101,8 @@ def retrieve_from_graph(self, query_bundle: QueryBundle) -> List[NodeWithScore]:
99101
question=question,
100102
)
101103

102-
parsed_cypher_query = self._parse_generated_cyher(response)
104+
if self.allowed_output_fields is not None:
105+
parsed_cypher_query = self._parse_generated_cyher(response)
103106

104107
query_output = self._graph_store.structured_query(parsed_cypher_query)
105108

@@ -131,7 +134,8 @@ async def aretrieve_from_graph(
131134
question=question,
132135
)
133136

134-
parsed_cypher_query = self._parse_generated_cyher(response)
137+
if self.allowed_output_fields is not None:
138+
parsed_cypher_query = self._parse_generated_cyher(response)
135139

136140
query_output = await self._graph_store.astructured_query(parsed_cypher_query)
137141

llama-index-core/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ name = "llama-index-core"
4343
packages = [{include = "llama_index"}]
4444
readme = "README.md"
4545
repository = "https://github.com/run-llama/llama_index"
46-
version = "0.10.43"
46+
version = "0.10.44"
4747

4848
[tool.poetry.dependencies]
4949
SQLAlchemy = {extras = ["asyncio"], version = ">=1.4.49"}

llama-index-integrations/vector_stores/llama-index-vector-stores-postgres/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
2727
license = "MIT"
2828
name = "llama-index-vector-stores-postgres"
2929
readme = "README.md"
30-
version = "0.1.9"
30+
version = "0.1.10"
3131

3232
[tool.poetry.dependencies]
3333
python = ">=3.8.1,<4.0"

0 commit comments

Comments
 (0)