Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
fa2207c8
Unverified
Commit
fa2207c8
authored
1 year ago
by
Logan
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[wip] fixes for testing (#10913)
parent
8caaafeb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llama-index-core/llama_index/core/ingestion/pipeline.py
+11
-9
11 additions, 9 deletions
llama-index-core/llama_index/core/ingestion/pipeline.py
llama-index-integrations/readers/llama-index-readers-web/pyproject.toml
+1
-1
1 addition, 1 deletion
...tegrations/readers/llama-index-readers-web/pyproject.toml
with
12 additions
and
10 deletions
llama-index-core/llama_index/core/ingestion/pipeline.py
+
11
−
9
View file @
fa2207c8
...
...
@@ -20,7 +20,6 @@ from llama_index_client import (
Project
,
ProjectCreate
,
)
from
llama_index_client.client
import
PlatformApi
from
llama_index.core.constants
import
(
DEFAULT_APP_URL
,
...
...
@@ -29,6 +28,7 @@ from llama_index.core.constants import (
DEFAULT_PROJECT_NAME
,
)
from
llama_index.core.bridge.pydantic
import
BaseModel
,
Field
from
llama_index.core.ingestion.api_utils
import
get_client
from
llama_index.core.ingestion.cache
import
DEFAULT_CACHE_NAME
,
IngestionCache
from
llama_index.core.ingestion.data_sources
import
(
ConfigurableDataSources
,
...
...
@@ -265,6 +265,8 @@ class IngestionPipeline(BaseModel):
transformations
=
self
.
_get_default_transformations
()
api_key
=
api_key
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_API_KEY
"
,
None
)
base_url
=
base_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_BASE_URL
"
,
DEFAULT_BASE_URL
)
app_url
=
app_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_APP_URL
"
,
DEFAULT_APP_URL
)
super
().
__init__
(
name
=
name
,
...
...
@@ -276,8 +278,8 @@ class IngestionPipeline(BaseModel):
cache
=
cache
or
IngestionCache
(),
docstore
=
docstore
,
docstore_strategy
=
docstore_strategy
,
base_url
=
base_url
or
DEFAULT_BASE_URL
,
app_url
=
app_url
or
DEFAULT_APP_URL
,
base_url
=
base_url
,
app_url
=
app_url
,
api_key
=
api_key
,
disable_cache
=
disable_cache
,
)
...
...
@@ -298,9 +300,9 @@ class IngestionPipeline(BaseModel):
assert
base_url
is
not
None
api_key
=
api_key
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_API_KEY
"
,
None
)
app_url
=
app_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_APP_URL
"
,
None
)
app_url
=
app_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_APP_URL
"
,
DEFAULT_APP_URL
)
client
=
PlatformApi
(
base_url
=
base_url
,
token
=
api_key
)
client
=
get_client
(
api_key
=
api_key
,
base_url
=
base_url
)
projects
:
List
[
Project
]
=
client
.
project
.
list_projects
(
project_name
=
project_name
...
...
@@ -381,9 +383,9 @@ class IngestionPipeline(BaseModel):
assert
base_url
is
not
None
api_key
=
api_key
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_API_KEY
"
,
None
)
app_url
=
app_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_APP_URL
"
,
None
)
app_url
=
app_url
or
os
.
environ
.
get
(
"
LLAMA_CLOUD_APP_URL
"
,
DEFAULT_APP_URL
)
client
=
PlatformApi
(
base_url
=
base_url
,
token
=
api_key
)
client
=
get_client
(
api_key
=
api_key
,
base_url
=
base_url
)
projects
:
List
[
Project
]
=
client
.
project
.
list_projects
(
project_name
=
project_name
...
...
@@ -454,7 +456,7 @@ class IngestionPipeline(BaseModel):
documents
:
Optional
[
List
[
Document
]]
=
None
,
nodes
:
Optional
[
List
[
BaseNode
]]
=
None
,
)
->
str
:
client
=
PlatformApi
(
base_url
=
self
.
base_url
,
token
=
self
.
api_key
)
client
=
get_client
(
api_key
=
self
.
api_key
,
base_url
=
self
.
base_url
)
input_nodes
=
self
.
_prepare_inputs
(
documents
,
nodes
)
...
...
@@ -496,7 +498,7 @@ class IngestionPipeline(BaseModel):
documents
:
Optional
[
List
[
Document
]]
=
None
,
nodes
:
Optional
[
List
[
BaseNode
]]
=
None
,
)
->
str
:
client
=
PlatformApi
(
base_url
=
self
.
base_url
,
token
=
self
.
api_key
)
client
=
get_client
(
api_key
=
self
.
api_key
,
base_url
=
self
.
base_url
)
pipeline_id
=
self
.
register
(
documents
=
documents
,
nodes
=
nodes
,
verbose
=
False
)
...
...
This diff is collapsed.
Click to expand it.
llama-index-integrations/readers/llama-index-readers-web/pyproject.toml
+
1
−
1
View file @
fa2207c8
...
...
@@ -26,7 +26,7 @@ license = "MIT"
maintainers
=
[
"HawkClaws"
,
"Hironsan"
,
"NA"
,
"an-bluecat"
,
"bborn"
,
"jasonwcfan"
,
"kravetsmic"
,
"pandazki"
,
"ruze00"
,
"selamanse"
,
"thejessezhang"
]
name
=
"llama-index-readers-web"
readme
=
"README.md"
version
=
"0.1.
4
"
version
=
"0.1.
5
"
[tool.poetry.dependencies]
python
=
">
=
3.8
.
1
,
<
3.12
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment