Skip to content

Commit 2e51db0

Browse files
authored
Update index.mdx
1 parent a3c5c3c commit 2e51db0

File tree

1 file changed

+4
-4
lines changed
  • tutorials/how-to-implement-rag-generativeapis

1 file changed

+4
-4
lines changed

tutorials/how-to-implement-rag-generativeapis/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ Then, we will embed them as vectors and store these vectors in your PostgreSQL d
142142
```python
143143
text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0, add_start_index=True, length_function=len, is_separator_regex=False)
144144
file_loader = S3DirectoryLoader(
145-
bucket=os.getenv("SCW_BUCKET_NAME", ""),
145+
bucket=os.getenv("SCW_BUCKET_NAME"),
146146
prefix="",
147-
endpoint_url=os.getenv("SCW_BUCKET_ENDPOINT", ""),
148-
aws_access_key_id=os.getenv("SCW_ACCESS_KEY", ""),
149-
aws_secret_access_key=os.getenv("SCW_SECRET_KEY", "")
147+
endpoint_url=os.getenv("SCW_BUCKET_ENDPOINT"),
148+
aws_access_key_id=os.getenv("SCW_ACCESS_KEY"),
149+
aws_secret_access_key=os.getenv("SCW_SECRET_KEY")
150150
)
151151
for file in file_loader.lazy_load():
152152
chunks = text_splitter.split_text(file.page_content)

0 commit comments

Comments
 (0)