Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web crawler text splitter for HTML splits too often #43

Open
CakeCrusher opened this issue Jun 11, 2024 · 0 comments
Open

web crawler text splitter for HTML splits too often #43

CakeCrusher opened this issue Jun 11, 2024 · 0 comments

Comments

@CakeCrusher
Copy link
Contributor

Ex:

from weaviate.classes.query import Filter

collection = client.collections.get(name="web_retrieval")
# response = collection.query.near_text(
#     query="CISE academic advisors are an invaluable resource for students at all stages of their academic careers.",
#     limit=5
#     filters=[]
# )
response = collection.query.fetch_objects(
    filters=Filter.by_property("url").equal("https://www.cise.ufl.edu/academics/advising-information/"),
    limit=10000
)

print(len(response.objects))
for i in response.objects:
    print(i.properties)
    print()
16
{'content': 'Facebook Twitter YouTube LinkedIn Instagram  \nWelcome  \nCurrent Students Faculty & Staff Family & Visitors Alumni & Friends', 'depth': 0.0, 'url': 'https://www.cise.ufl.edu/academics/advising-information/'}

{'content': 'UF News UF Calendar myUFL One.UF Directory', 'depth': 0.0, 'url': 'https://www.cise.ufl.edu/academics/advising-information/'}

{'content': 'Campus', 'depth': 0.0, 'url': 'https://www.cise.ufl.edu/academics/advising-information/'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant