Skip to content

Commit

Permalink
Update llamaindex-load.ipynb
Browse files Browse the repository at this point in the history
Openai updated importing codes and packages were not being located correctly
  • Loading branch information
CFIAleejaeka committed Mar 6, 2024
1 parent fa513aa commit f173475
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions notebooks/llamaindex-load.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
"metadata": {},
"outputs": [],
"source": [
"from llama_index.llms import AzureOpenAI\n",
"from llama_index.embeddings import AzureOpenAIEmbedding\n",
"from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n",
"from llama_index.llms.azure_openai import AzureOpenAI\n",
"from llama_index.embeddings.azure_openai import AzureOpenAIEmbedding\n",
"from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n",
"import logging\n",
"import sys\n",
"from collections.abc import Iterator\n",
"from llama_index import ServiceContext, SimpleDirectoryReader, StorageContext\n",
"from llama_index.indices.vector_store import VectorStoreIndex\n",
"from llama_index.vector_stores import PGVectorStore\n",
"from llama_index.core import ServiceContext, SimpleDirectoryReader, StorageContext\n",
"from llama_index.core import VectorStoreIndex\n",
"from llama_index.vector_stores.postgres import PGVectorStore\n",
"import textwrap\n",
"import openai\n",
"from llama_index import download_loader\n",
"#from llama_index import download_loader\n",
"# customize textnode - purpose is to add id to each node\n",
"from llama_index.schema import TextNode\n",
"#from llama_index.schema import TextNode\n",
"# customize stages of querying https://docs.llamaindex.ai/en/latest/understanding/querying/querying.html\n",
"from llama_index import get_response_synthesizer\n",
"from llama_index.retrievers import VectorIndexRetriever\n",
"from llama_index.query_engine import RetrieverQueryEngine\n",
"from llama_index.postprocessor import SimilarityPostprocessor\n",
"from llama_index import StorageContext, load_index_from_storage\n",
"from llama_index.core import get_response_synthesizer\n",
"from llama_index.core.indices.vector_store.retrievers.retriever import VectorIndexRetriever\n",
"from llama_index.core.query_engine import RetrieverQueryEngine\n",
"from llama_index.core.postprocessor import SimilarityPostprocessor\n",
"#from llama_index import StorageContext, load_index_from_storage\n",
"\n",
"logging.basicConfig(\n",
" stream=sys.stdout, level=logging.INFO\n",
Expand Down

0 comments on commit f173475

Please sign in to comment.