Skip to content

Commit

Permalink
Merge branch 'develop' into doc/#1094-merge-designer
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Sep 18, 2024
2 parents f1212c6 + 8d215dc commit bbd20e3
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/contributing/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Contributing to Taipy
---
title : Contributing to Taipy
---

Thanks for your interest in helping improve Taipy! Contributions are welcome, and they are
greatly appreciated! Every little help and credit will always be given.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/gallery/articles/talk_to_taipy/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: Talk To Taipy
category: llm
data-keywords: enterprise vizelement ai
short-description: Use natural language to ask questions about a car sales dataset. PandasAI will answer with text, tables, and visualizations
order: 14
img: talk_to_taipy/images/screenshot.png
---

Use natural language to ask questions about a car sales dataset. PandasAI will answer with text, tables, and visualizations

!!! note "Taipy Enterprise edition"

Taipy provides robust, business-focused applications tailored for enterprise
environments. To maintain standards of security and customization, these
applications are proprietary like this application. If you're looking for solutions
that are immediately deployable and customizable to your business needs, we invite
you to try them out and contact us for more detailed information.

[Try it live](https://talk-to-taipy.taipy.cloud/){: .tp-btn target='blank' }
[Contact us](https://taipy.io/book-a-call){: .tp-btn .tp-btn--accent target='blank' }


![TTT Screenshot](images/screenshot.png){width=90% : .tp-image-border }


# Understanding the Application

In this application, the user can ask a chatbot about a pre-defined car sales dataset.
The chatbot uses PandasAI and OpenAI to interpret the query, run pandas and matplotlib
code, and return text, tables, and visualizations as responses.

4 changes: 2 additions & 2 deletions docs/userman/scenario_features/events/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ and if the action is `CREATION` or `UPDATE`.

This snippet shows how you can capture and process events to notify users whenever
a new scenario is created, or a data node's value is updated.
For more details, see the [registration](understanding-topics.md) page.
For more details, see the [registration](understanding-notifier-register.md) page.

# External API triggered with Taipy Event Consumers

Expand All @@ -47,5 +47,5 @@ and triggers an external API call based on the `JOB`'s `id`.

This snippet shows how you can capture and process `JOB` events when an `UPDATE` is made to the `status`
of the `JOB` and request an external API.
For more details, see the [registration](understanding-topics.md) page.
For more details, see the [registration](understanding-notifier-register.md) page.

11 changes: 11 additions & 0 deletions mkdocs.yml_template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ repo_name: taipy
#strict: true
copyright: © 2021-[YEAR] Avaiga
nav:
- "Release Notes":
- "Release Notes": release_notes/index.md
- "Legacy": release_notes/legacy.md
- "Migration": release_notes/migration.md
- "Contributing":
- "Contributing": contributing/index.md
- "Code of Conduct": contributing/code_of_conduct.md
- "Contributors": contributing/contributors.md

- "Tutorials":
- "Tutorials": tutorials/index.md
- "Fundamentals":
- "Fundamentals": tutorials/fundamentals/index.md
- "Getting Started": tutorials/getting_started/index.md
Expand Down Expand Up @@ -253,6 +263,7 @@ nav:
- "LLM Chatbot" : gallery/articles/chatbot/index.md
- "Vision ChatBot": gallery/articles/vision_chatbot/index.md
- "RAG ChatBot": gallery/articles/rag_chatbot/index.md
- "Talk To Taipy": gallery/articles/talk_to_taipy/index.md
- "Sentiment Analysis": gallery/articles/sentiment_analysis/index.md
- "Tweet Generation": gallery/articles/tweet_generation/index.md
- "Visualization":
Expand Down
7 changes: 3 additions & 4 deletions tools/_setup_generation/step_refman.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def get_description(self) -> str:

def enter(self, setup: Setup):
os.environ["GENERATING_TAIPY_DOC"] = "true"
self.REFERENCE_DIR_PATH = os.path.join(
setup.docs_dir, RefManStep.REFERENCE_REL_PATH
)
# ...\docs\refmans\reference
self.REFERENCE_DIR_PATH = os.path.join(setup.docs_dir, RefManStep.REFERENCE_REL_PATH)
# ...\docs\userman\xrefs
self.XREFS_PATH = os.path.join(setup.user_manuals_dir, "xrefs")

def setup(self, setup: Setup) -> None:
Expand Down Expand Up @@ -409,7 +409,6 @@ def generate_entries(
if entry_desc[2]:
entry_desc[2] = [p for p in entry_desc[2] if p != package]
with open(self.XREFS_PATH, "w") as xrefs_output_file:
print(xrefs.get("taipy.gui", "ACHTUNG!!!"))
xrefs_output_file.write(json.dumps(xrefs))

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions tools/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def on_post_build(env):
)
new_title = "Taipy p" + new_title[1:]
before = (
before[: t_match.start()]
before[: match.start()]
+ new_title
+ before[t_match.end() :]
+ before[match.end() :]
)
html_content = (
before
Expand Down

0 comments on commit bbd20e3

Please sign in to comment.