parent
6403bf1127
commit
c0462dbe77
|
@ -42,6 +42,7 @@ def split_file(content, max_length=4000, overlap=0):
|
||||||
yield chunk
|
yield chunk
|
||||||
start += max_length - overlap
|
start += max_length - overlap
|
||||||
|
|
||||||
|
|
||||||
def read_file(filename):
|
def read_file(filename):
|
||||||
"""Read a file and return the contents"""
|
"""Read a file and return the contents"""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue