website-to-knowledge-base's People
Forkers
suatatan priyakantcharokar mecamangeg licesun dev-sec-killer dazeb anilkumarupadhya leonsting gabouh otey247 hidddee igberroteran coolrazor007 ahsan3219 si3mshady reayrtnygit kumar045 boya-ai awatt12 zorost ashishpatel26 pabbonante signpostproduct dzivkovi pratikbarjatya jimbrigwebsite-to-knowledge-base's Issues
Streamlit not imported
Streamlit not imported in app.py
List index error while running the app
Error details:
IndexError: list index out of range Traceback: File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\app.py", line 63, in <module> kb = get_knowledge_base(sitemap_url, pattern) File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 194, in wrapper return cached_func(*args, **kwargs) File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 223, in __call__ return self._get_or_create_cached_value(args, kwargs) File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 248, in _get_or_create_cached_value return self._handle_cache_miss(cache, value_key, func_args, func_kwargs) File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 302, in _handle_cache_miss computed_value = self._info.func(*func_args, **func_kwargs) File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\app.py", line 47, in get_knowledge_base return KnowledgeBase( File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\knowledge_base.py", line 75, in __init__ docsearch = Chroma.from_documents(docs, embeddings) File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 412, in from_documents return cls.from_texts( File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 380, in from_texts chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids) File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 159, in add_texts self._collection.add( File "F:\Programs\miniconda\lib\site-packages\chromadb\api\models\Collection.py", line 82, in add ids = validate_ids(maybe_cast_one_to_many(ids)) File "F:\Programs\miniconda\lib\site-packages\chromadb\api\types.py", line 71, in maybe_cast_one_to_many if isinstance(target[0], (int, float)):
EDIT (better formatting):
IndexError: list index out of range
Traceback:
File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\app.py", line 63, in <module>
kb = get_knowledge_base(sitemap_url, pattern)
File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 194, in wrapper
return cached_func(*args, **kwargs)
File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 223, in __call__
return self._get_or_create_cached_value(args, kwargs)
File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 248, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "F:\Programs\miniconda\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 302, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\app.py", line 47, in get_knowledge_base
return KnowledgeBase(
File "H:\Datathons\Imp Repos\website to knowledge base chatbot\website-to-knowledge-base-main\knowledge_base.py", line 75, in __init__
docsearch = Chroma.from_documents(docs, embeddings)
File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 412, in from_documents
return cls.from_texts(
File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 380, in from_texts
chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids)
File "F:\Programs\miniconda\lib\site-packages\langchain\vectorstores\chroma.py", line 159, in add_texts
self._collection.add(
File "F:\Programs\miniconda\lib\site-packages\chromadb\api\models\Collection.py", line 82, in add
ids = validate_ids(maybe_cast_one_to_many(ids))
File "F:\Programs\miniconda\lib\site-packages\chromadb\api\types.py", line 71, in maybe_cast_one_to_many
if isinstance(target[0], (int, float)):
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.