Commit ·
652068d
1
Parent(s): 1d1a8c7
....
Browse files- knowledge_graph.html +3 -3
- requirements.txt +5 -5
- requirements_v1.txt +16 -0
knowledge_graph.html
CHANGED
|
@@ -230,7 +230,7 @@ function highlightFilter(filter) {
|
|
| 230 |
|
| 231 |
#mynetwork {
|
| 232 |
width: 100%;
|
| 233 |
-
height:
|
| 234 |
background-color: #222222;
|
| 235 |
border: 1px solid lightgray;
|
| 236 |
position: relative;
|
|
@@ -453,8 +453,8 @@ function highlightFilter(filter) {
|
|
| 453 |
|
| 454 |
|
| 455 |
// parsing and collecting nodes and edges from the python
|
| 456 |
-
nodes = new vis.DataSet([{"font": {"color": "white"}, "group": "
|
| 457 |
-
edges = new vis.DataSet([{"arrows": "to", "from": "
|
| 458 |
|
| 459 |
nodeColors = {};
|
| 460 |
allNodes = nodes.get({ returnType: "Object" });
|
|
|
|
| 230 |
|
| 231 |
#mynetwork {
|
| 232 |
width: 100%;
|
| 233 |
+
height: 600px;
|
| 234 |
background-color: #222222;
|
| 235 |
border: 1px solid lightgray;
|
| 236 |
position: relative;
|
|
|
|
| 453 |
|
| 454 |
|
| 455 |
// parsing and collecting nodes and edges from the python
|
| 456 |
+
nodes = new vis.DataSet([{"font": {"color": "white"}, "group": "Person", "id": "Stannis_Baratheon", "label": "Stannis_Baratheon", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Bran_Stark", "label": "Bran_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Jaime_Lannister", "label": "Jaime_Lannister", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Organization", "id": "Night\u0027S_Watch", "label": "Night\u0027S_Watch", "shape": "dot", "title": "Organization"}, {"font": {"color": "white"}, "group": "Organization", "id": "White_Walkers", "label": "White_Walkers", "shape": "dot", "title": "Organization"}, {"font": {"color": "white"}, "group": "Person", "id": "Joffrey_Baratheon", "label": "Joffrey_Baratheon", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Petyr_Baelish", "label": "Petyr_Baelish", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Yara_Greyjoy", "label": "Yara_Greyjoy", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Lysa_Arryn", "label": "Lysa_Arryn", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Ellaria_Sand", "label": "Ellaria_Sand", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Margaery_Tyrell", "label": "Margaery_Tyrell", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Mance_Rayder", "label": "Mance_Rayder", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Sandor_Clegane", "label": "Sandor_Clegane", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Euron_Greyjoy", "label": "Euron_Greyjoy", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Sansa_Stark", "label": "Sansa_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Viserys_Targaryen", "label": "Viserys_Targaryen", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Robb_Stark", "label": "Robb_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Theon_Greyjoy", "label": "Theon_Greyjoy", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Olenna_Tyrell", "label": "Olenna_Tyrell", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Jon_Snow", "label": "Jon_Snow", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Daenerys_Targaryen", "label": "Daenerys_Targaryen", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Samwell_Tarly", "label": "Samwell_Tarly", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Balon_Greyjoy", "label": "Balon_Greyjoy", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Missandei", "label": "Missandei", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Organization", "id": "Second_Sons", "label": "Second_Sons", "shape": "dot", "title": "Organization"}, {"font": {"color": "white"}, "group": "Person", "id": "Cersei_Lannister", "label": "Cersei_Lannister", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Tommen_Baratheon", "label": "Tommen_Baratheon", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Ned_Stark", "label": "Ned_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Catelyn_Stark", "label": "Catelyn_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Arya_Stark", "label": "Arya_Stark", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Tywin_Lannister", "label": "Tywin_Lannister", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Tyrion_Lannister", "label": "Tyrion_Lannister", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Organization", "id": "Sparrows", "label": "Sparrows", "shape": "dot", "title": "Organization"}, {"font": {"color": "white"}, "group": "Person", "id": "Three-Eyed_Raven", "label": "Three-Eyed_Raven", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Aegon_Targaryen", "label": "Aegon_Targaryen", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Khal_Drogo", "label": "Khal_Drogo", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Robert_Baratheon", "label": "Robert_Baratheon", "shape": "dot", "title": "Person"}, {"font": {"color": "white"}, "group": "Person", "id": "Brienne_Of_Tarth", "label": "Brienne_Of_Tarth", "shape": "dot", "title": "Person"}]);
|
| 457 |
+
edges = new vis.DataSet([{"arrows": "to", "from": "Ned_Stark", "label": "hand_of_the_king", "to": "Robert_Baratheon"}, {"arrows": "to", "from": "Ned_Stark", "label": "parent", "to": "Sansa_Stark"}, {"arrows": "to", "from": "Ned_Stark", "label": "parent", "to": "Arya_Stark"}, {"arrows": "to", "from": "Ned_Stark", "label": "parent", "to": "Bran_Stark"}, {"arrows": "to", "from": "Cersei_Lannister", "label": "sibling", "to": "Jaime_Lannister"}, {"arrows": "to", "from": "Cersei_Lannister", "label": "parent", "to": "Joffrey_Baratheon"}, {"arrows": "to", "from": "Jaime_Lannister", "label": "parent", "to": "Joffrey_Baratheon"}, {"arrows": "to", "from": "Jon_Snow", "label": "member", "to": "Night\u0027S_Watch"}, {"arrows": "to", "from": "Viserys_Targaryen", "label": "sibling", "to": "Daenerys_Targaryen"}, {"arrows": "to", "from": "Daenerys_Targaryen", "label": "spouse", "to": "Khal_Drogo"}, {"arrows": "to", "from": "Robb_Stark", "label": "parent", "to": "Catelyn_Stark"}, {"arrows": "to", "from": "Catelyn_Stark", "label": "ally", "to": "Brienne_Of_Tarth"}, {"arrows": "to", "from": "Tyrion_Lannister", "label": "enemy", "to": "Stannis_Baratheon"}, {"arrows": "to", "from": "Arya_Stark", "label": "servant", "to": "Tywin_Lannister"}, {"arrows": "to", "from": "Theon_Greyjoy", "label": "betrayal", "to": "Robb_Stark"}, {"arrows": "to", "from": "Jon_Snow", "label": "captured_by", "to": "Mance_Rayder"}, {"arrows": "to", "from": "Samwell_Tarly", "label": "encounter", "to": "White_Walkers"}, {"arrows": "to", "from": "Daenerys_Targaryen", "label": "ally", "to": "Missandei"}, {"arrows": "to", "from": "Daenerys_Targaryen", "label": "ally", "to": "Second_Sons"}, {"arrows": "to", "from": "Olenna_Tyrell", "label": "parent", "to": "Margaery_Tyrell"}, {"arrows": "to", "from": "Petyr_Baelish", "label": "spouse", "to": "Lysa_Arryn"}, {"arrows": "to", "from": "Arya_Stark", "label": "enemy", "to": "Sandor_Clegane"}, {"arrows": "to", "from": "Bran_Stark", "label": "mentor", "to": "Three-Eyed_Raven"}, {"arrows": "to", "from": "Tommen_Baratheon", "label": "spouse", "to": "Margaery_Tyrell"}, {"arrows": "to", "from": "Sparrows", "label": "enemy", "to": "Cersei_Lannister"}, {"arrows": "to", "from": "Ellaria_Sand", "label": "enemy", "to": "Balon_Greyjoy"}, {"arrows": "to", "from": "Euron_Greyjoy", "label": "kill", "to": "Balon_Greyjoy"}, {"arrows": "to", "from": "Euron_Greyjoy", "label": "kidnap", "to": "Yara_Greyjoy"}, {"arrows": "to", "from": "Jon_Snow", "label": "identity", "to": "Aegon_Targaryen"}]);
|
| 458 |
|
| 459 |
nodeColors = {};
|
| 460 |
allNodes = nodes.get({ returnType: "Object" });
|
requirements.txt
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
# Core LLM and LangChain packages
|
| 2 |
-
langchain
|
| 3 |
-
langchain-experimental
|
| 4 |
-
langchain-openai
|
| 5 |
|
| 6 |
# Environment variable support
|
| 7 |
-
python-dotenv
|
| 8 |
|
| 9 |
# Graph visualization
|
| 10 |
-
pyvis
|
| 11 |
|
| 12 |
# Web UI
|
| 13 |
streamlit>=1.32.0
|
|
|
|
| 1 |
# Core LLM and LangChain packages
|
| 2 |
+
langchain==0.3.7
|
| 3 |
+
langchain-experimental==0.3.4
|
| 4 |
+
langchain-openai==0..2.3
|
| 5 |
|
| 6 |
# Environment variable support
|
| 7 |
+
python-dotenv==1.2.1
|
| 8 |
|
| 9 |
# Graph visualization
|
| 10 |
+
pyvis==0.3.2
|
| 11 |
|
| 12 |
# Web UI
|
| 13 |
streamlit>=1.32.0
|
requirements_v1.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Core LLM and LangChain packages
|
| 2 |
+
langchain>=0.1.0
|
| 3 |
+
langchain-experimental>=0.0.45
|
| 4 |
+
langchain-openai>=0.1.0
|
| 5 |
+
|
| 6 |
+
# Environment variable support
|
| 7 |
+
python-dotenv>=1.0.0
|
| 8 |
+
|
| 9 |
+
# Graph visualization
|
| 10 |
+
pyvis>=0.3.2
|
| 11 |
+
|
| 12 |
+
# Web UI
|
| 13 |
+
streamlit>=1.32.0
|
| 14 |
+
|
| 15 |
+
faiss-cpu
|
| 16 |
+
tiktoken
|