LlamaIndex 同日支持 OpenAI 开发者日新模型 GPT-4 Turbo 与视觉版
LlamaIndex news special edition: OpenAI developer day!
LlamaIndex 在 OpenAI 开发者日当天更新库,支持 gpt-4-1106-preview(GPT-4 Turbo,128,000 token 上下文窗口、JSON mode、并行函数调用等)和 gpt-4-vision-preview 多模态模型。同时新增 Azure OpenAI 端点、嵌入抽象与函数调用示例,其 RAG 演示 SEC Insights 已改用最新版 GPT-4。
LlamaIndex 当天即完成对 OpenAI 新模型的支持,读者可借此了解新能力在 RAG 工作流中的接入方式。
Hello Llama fans!
Yesterday was a big day in the world of LLMs; OpenAI held their developer day conference and there were a slew of new features. The team were all hands on deck to bring support for these features to the library as fast as possible — which is to say, the same day!
Explore our free and paid plans today.
In case you missed our tweet about it, if you install the latest build of LlamaIndex you’ll get everything below:
Support for two new models released today
gpt-4-1106-preview, aka GPT-4 Turbo, the latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and a 128,000 token context windowgpt-4-vision-preview, aka GPT 4 Turbo with vision with long-awaited multimodal support, has the ability to understand images in addition to all the other GPT-4 Turbo capabilities.
You can use these models just as you would any other OpenAI model:
from llama_index.llms import OpenAI
from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
llm = OpenAI(model="gpt-4-1106-preview")
service_context = ServiceContext.from_defaults(llm=llm)
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(
documents, service_context=service_context
)Azure OpenAI endpoints
Check out the OpenAI Azure notebook for examples.
New embeddings abstractions
Including Azure embeddings.
Function calling
Check out our notebook for examples.
SEC insights
Our demo of the power of retrieval-augmented generation for financial filings, SEC Insights, has been updated to use the latest version of GPT-4! Watch as you instantly get deeper insights and more relevant responses.
Look out for more OpenAI updates soon! Our regular newsletter will also be posted tomorrow.
来源:LlamaIndex:产品、工程与评测 · llamaindex.ai