File tree Expand file tree Collapse file tree 2 files changed +18
-22
lines changed
src/{{ project_name_snake }} Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Original file line number Diff line number Diff line change 11import logging
22import os
3+ import tempfile
34
45import httpx
6+ from dotenv import load_dotenv
57from llama_cloud .types import RetrievalMode
6- import tempfile
8+ from llama_index . core import Settings
79from llama_index .core .chat_engine .types import BaseChatEngine , ChatMode
10+ from llama_index .core .memory import ChatMemoryBuffer
11+ from llama_index .embeddings .openai import OpenAIEmbedding
12+ from llama_index .llms .openai import OpenAI
13+ from llama_cloud_services import LlamaCloudIndex
814from workflows import Workflow , step , Context
915from workflows .events import (
1016 StartEvent ,
1521)
1622from workflows .retry_policy import ConstantDelayRetryPolicy
1723
18- from llama_cloud_services import LlamaCloudIndex
19- from llama_index .core import Settings
20- from llama_index .llms .openai import OpenAI
21- from llama_index .embeddings .openai import OpenAIEmbedding
22- from llama_index .core .memory import ChatMemoryBuffer
23-
24- from dotenv import load_dotenv
25-
26- load_dotenv ()
27-
2824from .clients import (
2925 LLAMA_CLOUD_API_KEY ,
3026 LLAMA_CLOUD_BASE_URL ,
3430 LLAMA_CLOUD_PROJECT_ID ,
3531)
3632
33+ load_dotenv ()
34+
3735
3836logger = logging .getLogger (__name__ )
3937
Original file line number Diff line number Diff line change 11import logging
22import os
3+ import tempfile
34
45import httpx
6+ from dotenv import load_dotenv
57from llama_cloud .types import RetrievalMode
6- import tempfile
8+ from llama_index . core import Settings
79from llama_index .core .chat_engine .types import BaseChatEngine , ChatMode
10+ from llama_index .core .memory import ChatMemoryBuffer
11+ from llama_index .embeddings .openai import OpenAIEmbedding
12+ from llama_index .llms .openai import OpenAI
13+ from llama_cloud_services import LlamaCloudIndex
814from workflows import Workflow , step , Context
915from workflows .events import (
1016 StartEvent ,
1521)
1622from workflows .retry_policy import ConstantDelayRetryPolicy
1723
18- from llama_cloud_services import LlamaCloudIndex
19- from llama_index .core import Settings
20- from llama_index .llms .openai import OpenAI
21- from llama_index .embeddings .openai import OpenAIEmbedding
22- from llama_index .core .memory import ChatMemoryBuffer
23-
24- from dotenv import load_dotenv
25-
26- load_dotenv ()
27-
2824from .clients import (
2925 LLAMA_CLOUD_API_KEY ,
3026 LLAMA_CLOUD_BASE_URL ,
3430 LLAMA_CLOUD_PROJECT_ID ,
3531)
3632
33+ load_dotenv ()
34+
3735
3836logger = logging .getLogger (__name__ )
3937
You can’t perform that action at this time.
0 commit comments